llm
커맨드 라인에서 대형 언어 모델(LLM)에 액세스하세요
파일 탐색기
- cog.yml
- publish.yml
- stable-docs.yml
- test.yml
- dependabot.yml
- FUNDING.yml
- base.html
- cli.md
- index.md
- python-api.md
- storage.md
- writing-plugins.md
- llm_markov.py
- pyproject.toml
- advanced-model-plugins.md
- directory.md
- index.md
- installing-plugins.md
- plugin-hooks.md
- plugin-utilities.md
- tutorial-model-plugin.md
- .gitignore
- aliases.md
- changelog.md
- conf.py
- contributing.md
- fragments.md
- help.md
- index.md
- logging.md
- Makefile
- openai-models.md
- other-models.md
- python-api.md
- related-tools.md
- requirements.txt
- schemas.md
- setup.md
- templates.md
- tools.md
- usage.md
- __init__.py
- default_tools.py
- openai_models.py
- __init__.py
- __main__.py
- cli.py
- embeddings.py
- embeddings_migrations.py
- errors.py
- hookspecs.py
- logs.py
- migrations.py
- models.py
- parts.py
- plugins.py
- py.typed
- serialization.py
- templates.py
- tools.py
- utils.py
- test_responses_basic_non_streaming.yaml
- test_responses_basic_streaming.yaml
- test_responses_interleaved_reasoning_between_tool_calls.yaml
- test_responses_round_trips_encrypted_reasoning.yaml
- test_responses_tool_use.yaml
- test_responses_tool_use_streaming.yaml
- test_tool_use_basic.yaml
- test_tool_use_chain_of_two_calls.yaml
- test_tools_streaming_variant_a.yaml
- test_tools_streaming_variant_b.yaml
- test_tools_streaming_variant_c.yaml
- test_tools_streaming_variant_d.yaml
- conftest.py
- test-llm-load-plugins.sh
- test_aliases.py
- test_async.py
- test_async_parity.py
- test_attachments.py
- test_chat.py
- test_chat_templates.py
- test_cli_openai_models.py
- test_cli_options.py
- test_cli_streaming.py
- test_embed.py
- test_embed_cli.py
- test_encode_decode.py
- test_fragments_cli.py
- test_keys.py
- test_llm.py
- test_llm_logs.py
- test_logs_store.py
- test_migrate.py
- test_openai_endpoint.py
- test_openai_messages.py
- test_openai_responses.py
- test_options_parameter.py
- test_parts.py
- test_pause_resume.py
- test_plugins.py
- test_serialization.py
- test_templates.py
- test_tools.py
- test_tools_streaming.py
- test_utils.py
- .gitignore
- .readthedocs.yaml
- AGENTS.md
- Justfile
- LICENSE
- MANIFEST.in
- mypy.ini
- pyproject.toml
- pytest.ini
- README.md
- ruff.toml
# 설치 가이드
python설치 및 실행 절차
pip install llm
pip를 사용하여 llm 패키지를 설치합니다.
llm keys set openai
OpenAI API 키를 설정합니다.
llm "Ten fun names for a pet pelican"
설치된 LLM 도구를 사용하여 프롬프트를 실행합니다.
관련 영상 가이드
Language models on the command-line
핵심 명령어
pip install llm
Python 패키지 관리자를 통해 llm을 설치합니다.
llm keys set openai
OpenAI API 키를 안전하게 저장합니다.
llm "Hello world"
지정된 프롬프트로 대형 언어 모델에 요청을 보냅니다.
llm chat -m gpt-4.1
모델과 터미널에서 대화형 채팅을 시작합니다.
llm install llm-gemini
추가 기능을 위한 플러그인을 설치합니다.
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
릴리즈 타임라인
활발히 관리 중명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
brew install
설명 보기 ▼
brew install
Install a Homebrew formula or cask.
brew install {{formula|cask}}
Install a formula/cask:
brew install {{[-s|--build-from-source]}} {{formula}}
Build and install a formula from source (dependencies will still be installed from bottles):
brew install {{[-n|--dry-run]}} {{formula|cask}}
Download the manifest, print what would be installed but don't actually install anything:
llm
설명 보기 ▼
llm
원격 API 및 로컬에서 설치 및 실행할 수 있는 모델을 통해 대형 언어 모델(LLM)과 상호 작용.
더 많은 정보: <https://llm.datasette.io/en/stable/help.html>.
llm keys set openai
OpenAI API 키 설정:
llm "{{Ten fun names for a pet pelican}}"
프롬프트 실행:
cat {{path/to/file.py}} | llm {{[-s|--system]}} "{{Explain this code}}"
파일에 대해 [s]시스템 프롬프트 실행:
ollama
설명 보기 ▼
ollama
대규모 언어 모델 실행기.
사용 가능한 모델 목록은 <https://ollama.com/library>를 참조하세요.
더 많은 정보: <https://docs.ollama.com/cli>.
ollama serve
다른 명령을 실행하는 데 필요한 데몬 시작:
ollama run {{model}}
모델을 실행하고 대화:
ollama run {{model}} --think=false "{{prompt}}"
단일 프롬프트로 모델을 실행하며, thinking 기능을 비활성화:
pip install
설명 보기 ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
pip
설명 보기 ▼
pip
Python 패키지 관리자.
`install`와 같은 일부 하위 명령어는 별도의 사용 문서가 존재.
더 많은 정보: <https://pip.pypa.io/en/stable/cli/pip/>.
pip install {{package}}
패키지 설치 (더 많은 설치 예시는 `pip install`를 참고):
pip install --user {{package}}
시스템 전체 기본 위치 대신 사용자 디렉터리에 패키지 설치:
pip install {{[-U|--upgrade]}} {{package}}
패키지 업그레이드:
pipx
설명 보기 ▼
pipx
Python 애플리케이션을 격리된 환경에서 설치하고 실행.
더 많은 정보: <https://manned.org/pipx>.
pipx run {{pycowsay}} {{moo}}
임시 가상 환경에서 앱 실행:
pipx install {{package}}
가상 환경에 패키지 설치 및 진입점을 경로에 추가:
pipx uninstall {{package}}
설치된 패키지 나열:
sphinx-build
설명 보기 ▼
sphinx-build
Sphinx 문서 생성기.
더 많은 정보: <https://www.sphinx-doc.org/en/master/man/sphinx-build.html>.
sphinx-build {{[-b|--builder]}} {{html|epub|text|latex|man|...}} {{path/to/source_directory}} {{path/to/build_directory}}
문서 빌드:
sphinx-build {{[-b|--builder]}} {{html}} {{path/to/docs_directory}} {{path/to/build_directory}}
readthedocs.io를 위한 문서 빌드 (sphinx-rtd-theme pip 패키지가 필요):
uv tool
설명 보기 ▼
uv tool
Install and run commands provided by Python packages.
uv tool run {{command}}
Run a command from a package, without installing it:
uv tool install {{package}}
Install a Python package system-wide:
uv tool upgrade {{package}}
Upgrade an installed Python package:
uvx
설명 보기 ▼
uvx
이 명령은 `uv tool run`의 별칭입니다.
tldr uv tool
자세한 내용은 원본 명령을 참고하세요:
