| 1 | --- |
| 2 | title: "Models" |
| 3 | description: "Models form the foundation of the entire agent experience, offering different specialized capabilities:" |
| 4 | --- |
| 5 | |
| 6 | - **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance |
| 7 | - **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks |
| 8 | - **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy |
| 9 | - **[Autocomplete](/customize/model-roles/autocomplete)**: Provide real-time suggestions as developers type |
| 10 | - **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search |
| 11 | - **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning |
| 12 | |
| 13 |  |
| 14 | |
| 15 | ## Recommended Models |
| 16 | |
| 17 | ### Best Models by Role |
| 18 | |
| 19 | | Model role | Best open models | Best closed models | Notes | |
| 20 | | :----------- | :----------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------- | |
| 21 | | Agent / Plan | [Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder), [Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b), [Devstral (27B)](https://hub.continue.dev/ollama/devstral), [Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2), [gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b), [gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b), GLM 4.5 (355B), GLM 4.5 Air (106B) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed models are slightly better than open models | |
| 22 | | Chat / Edit | [Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder), [Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b), [gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b), [gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed and open models have pretty similar performance | |
| 23 | | Autocomplete | [QwenCoder2.5 (1.5B)](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b), [QwenCoder2.5 (7B)](https://hub.continue.dev/ollama/qwen2.5-coder-7b) | [Codestral](https://hub.continue.dev/mistral/codestral), [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are slightly better than open models | |
| 24 | | Apply | N/A | [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply), [Morph Fast Apply](https://hub.continue.dev/morphllm/morph-v2) | Open models are not good enough for this model role | |
| 25 | | Embed | [Nomic Embed Text](https://hub.continue.dev/ollama/nomic-embed-text-latest), Qwen3 Embedding | [Voyage Code 3](https://hub.continue.dev/voyageai/voyage-code-3), [Morph Embeddings](https://hub.continue.dev/morphllm/morph-embedding-v2), Codestral Embed | Closed models are slightly better than open models | |
| 26 | | Rerank | zerank-1, zerank-1-small, Qwen3 Reranker | [Voyage Rerank 2.5](https://hub.continue.dev/voyageai/rerank-2-5), Relace Code Rerank, [Morph Rerank](https://hub.continue.dev/morphllm/morph-rerank-v2) | Open models are beginning to emerge for this model role | |
| 27 | | Next Edit | N/A | [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are significantly better than open models | |
| 28 | |
| 29 | ## Learn More About Models |
| 30 | |
| 31 | Continue supports [many model providers](/customize/model-providers/top-level/openai), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. |
| 32 | |
| 33 | Read more about [model roles](/customize/model-roles), [model capabilities](/customize/deep-dives/model-capabilities) and view [`models`](/reference#models) in the YAML Reference. |
| 34 | |
| 35 | ### Example Model Setup Instructions |
| 36 | |
| 37 | # Frontier Models |
| 38 | |
| 39 | [Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) from Anthropic |
| 40 | |
| 41 | 1. Get your API key from [Anthropic](https://console.anthropic.com/) |
| 42 | 2. Add [Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) to an agent on Continue Hub |
| 43 | 3. Add `ANTHROPIC_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 44 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 45 | |
| 46 | [Qwen Coder 3 480B](https://hub.continue.dev/openrouter/qwen3-coder) from Qwen |
| 47 | |
| 48 | 1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys) |
| 49 | 2. Add [Qwen Coder 3 480B](https://hub.continue.dev/openrouter/qwen3-coder) to an agent on Continue Hub |
| 50 | 3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 51 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 52 | |
| 53 | [GPT-5](https://hub.continue.dev/openai/gpt-5) from OpenAI |
| 54 | |
| 55 | 1. Get your API key from [OpenAI](https://platform.openai.com) |
| 56 | 2. Add [GPT-5](https://hub.continue.dev/openai/gpt-5) to an agent on Continue Hub |
| 57 | 3. Add `OPENAI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 58 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 59 | |
| 60 | [Kimi K2](https://hub.continue.dev/openrouter/kimi-k2) from Moonshot AI |
| 61 | |
| 62 | 1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys) |
| 63 | 2. Add [Kimi K2](https://hub.continue.dev/openrouter/kimi-k2) to an agent on Continue Hub |
| 64 | 3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 65 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 66 | |
| 67 | [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) from Google |
| 68 | |
| 69 | 1. Get your API key from [Google AI Studio](https://aistudio.google.com) |
| 70 | 2. Add [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) to an agent on Continue Hub |
| 71 | 3. Add `GEMINI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 72 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 73 | |
| 74 | [Grok 4](https://hub.continue.dev/xai/grok-4) from xAI |
| 75 | |
| 76 | 1. Get your API key from [xAI](https://console.x.ai/) |
| 77 | 2. Add [Grok 4](https://hub.continue.dev/xai/grok-4) to an agent on Continue Hub |
| 78 | 3. Add `XAI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 79 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 80 | |
| 81 | [Devstral Medium](https://hub.continue.dev/mistral/devstral-medium) from Mistral AI |
| 82 | |
| 83 | 1. Get your API key from [Mistral AI](https://console.mistral.ai/) |
| 84 | 2. Add [Devstral Medium](https://hub.continue.dev/mistral/devstral-medium) to an agent on Continue Hub |
| 85 | 3. Add `MISTRAL_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 86 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 87 | |
| 88 | [gpt-oss-120b](https://hub.continue.dev/openrouter/gpt-oss-120b) from OpenAI |
| 89 | |
| 90 | 1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys) |
| 91 | 2. Add [gpt-oss-120b](https://hub.continue.dev/openrouter/gpt-oss-120b) to an agent on Continue Hub |
| 92 | 3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) |
| 93 | 4. Click `Reload config` in the agent selector in the Continue IDE extension |
| 94 | |
| 95 | ### Local Models |
| 96 | |
| 97 | These models can be run on your computer if you have enough VRAM. |
| 98 | |
| 99 | Their limited tool calling and reasoning capabilities will make it challenging to use Agent mode. |
| 100 | |
| 101 | [Qwen3 Coder 30B](https://hub.continue.dev/ollama/qwen3-coder-30b) |
| 102 | |
| 103 | 1. Add [Qwen3 Coder 30B](https://hub.continue.dev/ollama/qwen3-coder-30b) to an agent on Continue Hub |
| 104 | 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) |
| 105 | 3. Click `Reload config` in the agent selector in the Continue IDE extension |
| 106 | |
| 107 | [gpt-oss-20b](https://hub.continue.dev/ollama/gpt-oss-20b) |
| 108 | |
| 109 | 1. Add [gpt-oss-20b](ttps://hub.continue.dev/ollama/gpt-oss-20b) to an agent on Continue Hub |
| 110 | 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) |
| 111 | 3. Click `Reload config` in the agent selector in the Continue IDE extension |
| 112 | |
| 113 | [Devstral Small 27B](https://hub.continue.dev/ollama/devstral) |
| 114 | |
| 115 | 1. Add [Devstral Small](https://hub.continue.dev/ollama/devstral) to an agent on Continue Hub |
| 116 | 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) |
| 117 | 3. Click `Reload config` in the agent selector in the Continue IDE extension |
| 118 | |
| 119 | [Qwen2.5-Coder 7B](https://hub.continue.dev/ollama/qwen2.5-coder-7b) from Qwen |
| 120 | |
| 121 | 1. Add [Qwen2.5-Coder 7B](https://hub.continue.dev/ollama/qwen2.5-coder-7b) to an agent on Continue Hub |
| 122 | 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) |
| 123 | 3. Click `Reload config` in the agent selector in the Continue IDE extension |
| 124 | |
| 125 | [Gemma 3 4B](https://hub.continue.dev/ollama/gemma3-4b) from Google |
| 126 | |
| 127 | 1. Add [Gemma 3 4B](https://hub.continue.dev/ollama/gemma3-4b) to an agent on Continue Hub |
| 128 | 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) |
| 129 | 3. Click `Reload config` in the agent selector in the Continue IDE extension |
| 130 | |
| 131 | [Qwen2.5-Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b) from Qwen |
| 132 | |
| 133 | 1. Add [Qwen2.5-Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b) to an agent on Continue Hub |
| 134 | 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) |
| 135 | 3. Click `Reload config` in the agent selector in the Continue IDE extension |