DocumentationProviders

Providers

Neovate Code supports multiple providers and models. You can use it with your own models and providers, or use the built-in models and providers.

Built-in providers

Didn’t find your provider? Submit an issue or a pull request to add it.

Anthropic

  1. Open Anthropic Platform Console, click Create Key to create a new API key and copy it.

  2. Type /login and select Anthropic and enter the API key, or set the API key in your environment variable ANTHROPIC_API_KEY.

export ANTHROPIC_API_KEY=your-api-key  

If you want to use custom base URL, you can set the environment variable ANTHROPIC_API_BASE.

export ANTHROPIC_API_BASE=https://your-base-url
  1. Run /model to select the model you want to use.

DeepSeek

  1. Open DeepSeek Console, click Create new API key to create a new API key and copy it.

  2. Type /login and select DeepSeek and enter the API key, or set the API key in your environment variable DEEPSEEK_API_KEY.

export DEEPSEEK_API_KEY=your-api-key  

If you want to use custom base URL, you can set the environment variable DEEPSEEK_API_BASE.

export DEEPSEEK_API_BASE=https://your-base-url
  1. Run /model to select the model you want to use.

Google

  1. Open Google AI Studio, click Create API key to create a new API key and copy it.

  2. Type /login and select Google and enter the API key, or set the API key in your environment variable GOOGLE_API_KEY.

export GOOGLE_API_KEY=your-api-key  

If you want to use custom base URL, you can set the environment variable GOOGLE_GENERATIVE_AI_API_BASE.

export GOOGLE_GENERATIVE_AI_API_BASE=https://your-base-url
  1. Run /model to select the model you want to use.

Groq

  1. Open Groq Console, click Create API Key to create a new API key and copy it.

  2. Type /login and select Groq and enter the API key, or set the API key in your environment variable GROQ_API_KEY.

export GROQ_API_KEY=your-api-key  
  1. Run /model to select the model you want to use.

ModelScope

  1. Open ModelScope Console, click Create API Key to create a new API key and copy it.

  2. Type /login and select ModelScope and enter the API key, or set the API key in your environment variable MODELSCOPE_API_KEY.

export MODELSCOPE_API_KEY=your-api-key
  1. Run /model to select the model you want to use.

Moonshot AI

  1. Open Moonshot AI Console, click Create API key to create a new API key and copy it.

  2. Type /login and select Moonshot AI and enter the API key, or set the API key in your environment variable MOONSHOT_API_KEY.

export MOONSHOT_API_KEY=your-api-key  
  1. Run /model to select the model you want to use.

Moonshot AI CN

  1. Open Moonshot AI CN Console, click Create API key to create a new API key and copy it.

  2. Type /login and select Moonshot AI CN and enter the API key, or set the API key in your environment variable MOONSHOT_API_KEY.

export MOONSHOT_API_KEY=your-api-key  
  1. Run /model to select the model you want to use.

IFlow

💡

It’s free to use.

  1. Open IFlow, register, click the right top avatar, then click 我的账户 to get the API key, copy it.

  2. Type /login and select IFlow and enter the API key, or set the API key in your environment variable IFLOW_API_KEY.

export IFLOW_API_KEY=your-api-key  
  1. Run /model to select the model you want to use.

OpenAI

  1. Open OpenAI Platform Console, click Create new secret key to create a new API key and copy it.

  2. Type /login and select OpenAI and enter the API key, or set the API key in your environment variable OPENAI_API_KEY.

export OPENAI_API_KEY=your-api-key  

If you want to use custom base URL, you can set the environment variable OPENAI_API_BASE.

export OPENAI_API_BASE=https://your-base-url
  1. Run /model to select the model you want to use.

OpenRouter

  1. Open OpenRouter Dashboard, click Create API key to create a new API key and copy it.

  2. Type /login and select OpenRouter and enter the API key, or set the API key in your environment variable OPENROUTER_API_KEY.

export OPENROUTER_API_KEY=your-api-key  
  1. Run /model to select the model you want to use.

xAI

  1. Open xAI Console, click Create API key to create a new API key and copy it.

  2. Type /login and select xAI and enter the API key, or set the API key in your environment variable XAI_API_KEY.

export XAI_API_KEY=your-api-key  
  1. Run /model to select the model you want to use.

Custom providers

You can add any OpenAI compatible provider that is not built-in.

Edit the ~/.neovate/config.json file to add the provider.

{
  "provider": {
    "your-provider": {
      "apiKey": "your-api-key",
      "api": "https://your-base-url",
      "doc": "https://your-doc", // optional
      "env": ["YOUR_API_KEY"], // optional
      "apiEnv": ["YOUR_API_BASE"], // optional
      "name": "your-provider", // optional
      "models": {
        // the value is the model id
        // the full list could be found in https://github.com/neovateai/neovate-code/blob/d1b8cc5/src/model.ts#L70
        "foo": "claude-4-sonnet"
      }
    }
  }
}