Skip to content
Discussion options

You must be logged in to vote

kimi-cli supports APIs that are compatible with openai's. To use those APIs, you can edit your config file (located at ~/.kimi) as follows:

{
  "default_model": "",
  "models": {
    "gpt4.5": {
      "provider": "openai",
      "model": "gpt-4.5",
      "max_context_size": 160000
    }
  },
  "providers": {
    "openai": {
      "type": "openai_legacy",
      "base_url": "base_url",
      "api_key": "your-secret-key"
    }
  },
  "loop_control": {
    "max_steps_per_run": 100,
    "max_retries_per_step": 3
  },
  "services": {}
}

and then run kimi with:

kimi -m gpt4.5

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by xxchan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
4 participants
Converted from issue

This discussion was converted from issue #120 on October 29, 2025 10:26.