메인 콘텐츠로 건너뛰기

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

Moonshot은 OpenAI 호환 엔드포인트로 Kimi API를 제공합니다. 공급자를 구성하고 기본 모델을 moonshot/kimi-k2.6으로 설정하거나, kimi/kimi-for-coding으로 Kimi Coding을 사용하세요.
Moonshot과 Kimi Coding은 별도의 공급자입니다. 키는 서로 바꿔 사용할 수 없고, 엔드포인트가 다르며, 모델 참조도 다릅니다(moonshot/...kimi/...).

내장 모델 카탈로그

모델 참조이름추론입력컨텍스트최대 출력
moonshot/kimi-k2.6Kimi K2.6아니요텍스트, 이미지262,144262,144
moonshot/kimi-k2.5Kimi K2.5아니요텍스트, 이미지262,144262,144
moonshot/kimi-k2-thinkingKimi K2 Thinking텍스트262,144262,144
moonshot/kimi-k2-thinking-turboKimi K2 Thinking Turbo텍스트262,144262,144
moonshot/kimi-k2-turboKimi K2 Turbo아니요텍스트256,00016,384
현재 Moonshot 호스팅 K2 모델에 대한 번들 비용 추정치는 Moonshot이 게시한 종량제 요금을 사용합니다. Kimi K2.6은 캐시 적중 0.16/MTok,입력0.16/MTok, 입력 0.95/MTok, 출력 4.00/MTok이고,KimiK2.5는캐시적중4.00/MTok이고, Kimi K2.5는 캐시 적중 0.10/MTok, 입력 0.60/MTok,출력0.60/MTok, 출력 3.00/MTok입니다. 다른 레거시 카탈로그 항목은 구성에서 재정의하지 않는 한 비용이 0인 자리 표시자를 유지합니다.

시작하기

공급자를 선택하고 설정 단계를 따르세요.
가장 적합한 용도: Moonshot Open Platform을 통한 Kimi K2 모델.
1

Choose your endpoint region

인증 선택엔드포인트지역
moonshot-api-keyhttps://api.moonshot.ai/v1국제
moonshot-api-key-cnhttps://api.moonshot.cn/v1중국
2

Run onboarding

openclaw onboard --auth-choice moonshot-api-key
또는 중국 엔드포인트의 경우:
openclaw onboard --auth-choice moonshot-api-key-cn
3

Set a default model

{
  agents: {
    defaults: {
      model: { primary: "moonshot/kimi-k2.6" },
    },
  },
}
4

Verify models are available

openclaw models list --provider moonshot
5

Run a live smoke test

일반 세션을 건드리지 않고 모델 접근과 비용 추적을 확인하려면 격리된 상태 디렉터리를 사용하세요.
OPENCLAW_CONFIG_PATH=/tmp/openclaw-kimi/openclaw.json \
OPENCLAW_STATE_DIR=/tmp/openclaw-kimi \
openclaw agent --local \
  --session-id live-kimi-cost \
  --message 'Reply exactly: KIMI_LIVE_OK' \
  --thinking off \
  --json
JSON 응답은 provider: "moonshot"model: "kimi-k2.6"을 보고해야 합니다. Moonshot이 사용량 메타데이터를 반환하면 어시스턴트 트랜스크립트 항목은 정규화된 토큰 사용량과 추정 비용을 usage.cost 아래에 저장합니다.

구성 예시

{
  env: { MOONSHOT_API_KEY: "sk-..." },
  agents: {
    defaults: {
      model: { primary: "moonshot/kimi-k2.6" },
      models: {
        // moonshot-kimi-k2-aliases:start
        "moonshot/kimi-k2.6": { alias: "Kimi K2.6" },
        "moonshot/kimi-k2.5": { alias: "Kimi K2.5" },
        "moonshot/kimi-k2-thinking": { alias: "Kimi K2 Thinking" },
        "moonshot/kimi-k2-thinking-turbo": { alias: "Kimi K2 Thinking Turbo" },
        "moonshot/kimi-k2-turbo": { alias: "Kimi K2 Turbo" },
        // moonshot-kimi-k2-aliases:end
      },
    },
  },
  models: {
    mode: "merge",
    providers: {
      moonshot: {
        baseUrl: "https://api.moonshot.ai/v1",
        apiKey: "${MOONSHOT_API_KEY}",
        api: "openai-completions",
        models: [
          // moonshot-kimi-k2-models:start
          {
            id: "kimi-k2.6",
            name: "Kimi K2.6",
            reasoning: false,
            input: ["text", "image"],
            cost: { input: 0.95, output: 4, cacheRead: 0.16, cacheWrite: 0 },
            contextWindow: 262144,
            maxTokens: 262144,
          },
          {
            id: "kimi-k2.5",
            name: "Kimi K2.5",
            reasoning: false,
            input: ["text", "image"],
            cost: { input: 0.6, output: 3, cacheRead: 0.1, cacheWrite: 0 },
            contextWindow: 262144,
            maxTokens: 262144,
          },
          {
            id: "kimi-k2-thinking",
            name: "Kimi K2 Thinking",
            reasoning: true,
            input: ["text"],
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 262144,
            maxTokens: 262144,
          },
          {
            id: "kimi-k2-thinking-turbo",
            name: "Kimi K2 Thinking Turbo",
            reasoning: true,
            input: ["text"],
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 262144,
            maxTokens: 262144,
          },
          {
            id: "kimi-k2-turbo",
            name: "Kimi K2 Turbo",
            reasoning: false,
            input: ["text"],
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 256000,
            maxTokens: 16384,
          },
          // moonshot-kimi-k2-models:end
        ],
      },
    },
  },
}

Kimi 웹 검색

OpenClaw는 Moonshot 웹 검색을 기반으로 하는 web_search 제공자로 Kimi도 제공합니다.
1

대화형 웹 검색 설정 실행

openclaw configure --section web
웹 검색 섹션에서 Kimi를 선택하여 plugins.entries.moonshot.config.webSearch.*를 저장합니다.
2

웹 검색 리전 및 모델 구성

대화형 설정에서는 다음을 묻습니다.
설정옵션
API 리전https://api.moonshot.ai/v1(국제) 또는 https://api.moonshot.cn/v1(중국)
웹 검색 모델기본값은 kimi-k2.6
구성은 plugins.entries.moonshot.config.webSearch 아래에 있습니다.
{
  plugins: {
    entries: {
      moonshot: {
        config: {
          webSearch: {
            apiKey: "sk-...", // or use KIMI_API_KEY / MOONSHOT_API_KEY
            baseUrl: "https://api.moonshot.ai/v1",
            model: "kimi-k2.6",
          },
        },
      },
    },
  },
  tools: {
    web: {
      search: {
        provider: "kimi",
      },
    },
  },
}

고급 구성

Moonshot Kimi는 이진 네이티브 사고를 지원합니다.
  • thinking: { type: "enabled" }
  • thinking: { type: "disabled" }
agents.defaults.models.<provider/model>.params를 통해 모델별로 구성합니다.
{
  agents: {
    defaults: {
      models: {
        "moonshot/kimi-k2.6": {
          params: {
            thinking: { type: "disabled" },
          },
        },
      },
    },
  },
}
OpenClaw는 Moonshot에 대한 런타임 /think 수준도 매핑합니다.
/think 수준Moonshot 동작
/think offthinking.type=disabled
off가 아닌 모든 수준thinking.type=enabled
Moonshot 사고가 활성화된 경우 tool_choiceauto 또는 none이어야 합니다. OpenClaw는 호환성을 위해 호환되지 않는 tool_choice 값을 auto로 정규화합니다.
Kimi K2.6은 reasoning_content의 여러 턴 보존을 제어하는 선택적 thinking.keep 필드도 허용합니다. 턴 간 전체 추론을 유지하려면 "all"로 설정하고, 서버 기본 전략을 사용하려면 생략하거나 null로 둡니다. OpenClaw는 moonshot/kimi-k2.6에 대해서만 thinking.keep을 전달하고 다른 모델에서는 제거합니다.
{
  agents: {
    defaults: {
      models: {
        "moonshot/kimi-k2.6": {
          params: {
            thinking: { type: "enabled", keep: "all" },
          },
        },
      },
    },
  },
}
Moonshot Kimi는 functions.<name>:<index> 형식의 tool_call ID를 제공합니다. OpenClaw는 여러 턴 도구 호출이 계속 작동하도록 이를 변경하지 않고 보존합니다.사용자 지정 OpenAI 호환 제공자에서 엄격한 정리를 강제하려면 sanitizeToolCallIds: true를 설정합니다.
{
  models: {
    providers: {
      "my-kimi-proxy": {
        api: "openai-completions",
        sanitizeToolCallIds: true,
      },
    },
  },
}
네이티브 Moonshot 엔드포인트(https://api.moonshot.ai/v1https://api.moonshot.cn/v1)는 공유 openai-completions 전송에서 스트리밍 사용량 호환성을 알립니다. OpenClaw는 이를 엔드포인트 기능을 기준으로 판단하므로, 동일한 네이티브 Moonshot 호스트를 대상으로 하는 호환 사용자 지정 제공자 ID도 동일한 스트리밍 사용량 동작을 상속합니다.번들된 K2.6 가격 책정을 사용하면 입력, 출력 및 캐시 읽기 토큰을 포함하는 스트리밍 사용량도 /status, /usage full, /usage cost 및 트랜스크립트 기반 세션 회계를 위한 로컬 예상 USD 비용으로 변환됩니다.
Provider모델 참조 접두사엔드포인트인증 환경 변수
Moonshotmoonshot/https://api.moonshot.ai/v1MOONSHOT_API_KEY
Moonshot CNmoonshot/https://api.moonshot.cn/v1MOONSHOT_API_KEY
Kimi Codingkimi/Kimi Coding 엔드포인트KIMI_API_KEY
웹 검색N/AMoonshot API 리전과 동일KIMI_API_KEY 또는 MOONSHOT_API_KEY
  • Kimi 웹 검색은 KIMI_API_KEY 또는 MOONSHOT_API_KEY를 사용하며, 기본값은 모델 kimi-k2.6과 함께 https://api.moonshot.ai/v1입니다.
  • 필요한 경우 models.providers에서 가격 및 컨텍스트 메타데이터를 재정의하세요.
  • Moonshot이 모델에 대해 다른 컨텍스트 제한을 게시하는 경우 그에 맞게 contextWindow를 조정하세요.

관련 항목

모델 선택

제공자, 모델 참조, 장애 조치 동작 선택.

웹 검색

Kimi를 포함한 웹 검색 제공자 구성.

구성 레퍼런스

제공자, 모델, Plugin에 대한 전체 구성 스키마.

Moonshot Open Platform

Moonshot API 키 관리 및 문서.