Skip to content

GitHub Copilot CLI는 터미널용 GitHub의 AI 코딩 에이전트입니다. 코드베이스를 이해하고, 편집하고, 명령을 실행하며, 더 빠르게 소프트웨어를 구축할 수 있도록 도와줍니다.

Ollama를 통해 Copilot CLI에서 오픈 모델을 사용할 수 있으며, qwen3.5, glm-5.1:cloud, kimi-k2.5:cloud 등의 모델을 사용할 수 있습니다.

설치

Copilot CLI를 설치하세요:

shell
brew install copilot-cli
shell
npm install -g @github/copilot
shell
curl -fsSL https://gh.io/copilot-install | bash
powershell
winget install GitHub.Copilot

Ollama와 함께 사용하기

빠른 설정

shell
ollama launch copilot

모델로 직접 실행

shell
ollama launch copilot --model kimi-k2.5:cloud

추천 모델

  • kimi-k2.5:cloud
  • glm-5:cloud
  • minimax-m2.7:cloud
  • qwen3.5:cloud
  • glm-4.7-flash
  • qwen3.5

클라우드 모델은 ollama.com/search?c=cloud에서도 사용할 수 있습니다.

비대화형(헤드리스) 모드

Docker, CI/CD 또는 스크립트에서 상호작용 없이 Copilot CLI를 실행하려면:

shell
ollama launch copilot --model kimi-k2.5:cloud --yes -- -p "how does this repository work?"

--yes 플래그는 모델을 자동으로 풀(pull)하고, 선택기를 건너뛰며, --model을 지정해야 합니다. -- 뒤의 인자는 Copilot CLI에 직접 전달됩니다.

수동 설정

Copilot CLI는 환경 변수를 통해 OpenAI 호환 API로 Ollama에 연결합니다.

  1. 환경 변수를 설정하세요:
shell
export COPILOT_PROVIDER_BASE_URL=http://localhost:11434/v1
export COPILOT_PROVIDER_API_KEY=
export COPILOT_PROVIDER_WIRE_API=responses
export COPILOT_MODEL=qwen3.5
  1. Copilot CLI를 실행하세요:
shell
copilot

또는 인라인으로 환경 변수를 지정하여 실행할 수도 있습니다:

shell
COPILOT_PROVIDER_BASE_URL=http://localhost:11434/v1 COPILOT_PROVIDER_API_KEY= COPILOT_PROVIDER_WIRE_API=responses COPILOT_MODEL=glm-5:cloud copilot

참고: Copilot은 넓은 컨텍스트 창을 필요로 합니다. 최소 64k 토큰을 권장합니다. Ollama에서 컨텍스트 길이를 조정하는 방법은 컨텍스트 길이 문서를 참고하세요.