For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
VS Code Continue
Configure Continue extension for VS Code to use agentgateway
Configure Continue, the open-source AI code assistant for VS Code, to route requests through agentgateway.
Before you begin
- Install the
agentgatewaybinary. - Install VS Code with the Continue extension.
Example agentgateway configuration
You can configure agentgateway in the UI or in your configuration file.
To create the same configuration in the UI, follow these steps.
Set your OpenAI API key, create a configuration file with an empty
llmsection, and start agentgateway. The UI checks that theOPENAI_API_KEYenvironment variable exists when you save the model.export OPENAI_API_KEY='<your-api-key>' cat > config.yaml <<'EOF' llm: models: [] EOF agentgateway -f config.yamlAdd the model.
Open LLM > Models, such as http://localhost:15000/ui/llm/models, and click Add model.
From the Provider dropdown, select OpenAI.
In the Incoming model match field, replace the default
openai/*with*.For the Provider API key, select Env var, and enter
OPENAI_API_KEY.

Click Save model.
Serve LLM traffic on port
3000.Open the Gateway Overview page, such as http://localhost:15000/ui/.
On the LLM row, click Settings.
Enter
3000for the Port, and click Save settings.

The UI writes the same deprecated llm.port field as the Config file tab, plus an empty llm.gateways list. If your configuration defines gateways, the Settings drawer shows a Gateway dropdown instead of Port, and binds LLM traffic to the gateway that you select. The UI also writes the provider as openai instead of openAI. Agentgateway accepts both values.
Whether the UI can save depends on your storage mode. For more information, see Save changes from the UI.
Configure Continue
- Edit the
~/.continue/config.yamlfile to add your agentgateway endpoint. If the file already has amodelslist, add the model to that list. - Save the file and reload Continue in VS Code.
name: agentgateway
version: 0.0.1
schema: v1
models:
- name: agentgateway
provider: openai
model: gpt-4o-mini
apiBase: http://localhost:3000/v1Review the following table to understand this configuration.
| Field | Description |
|---|---|
name | At the top level, a name for the configuration. In the models list, the display name shown in the Continue model selector. |
version, schema | Required by the Continue config.yaml format. Keep schema: v1. |
provider | Set to openai for any OpenAI-compatible endpoint. |
model | The model name from your agentgateway backend configuration. |
apiBase | Your agentgateway URL with the /v1 path. |
Verify the connection
- Open the Continue sidebar in VS Code (
Cmd + Lon macOS,Ctrl + Lon Windows/Linux). - Select agentgateway from the model dropdown.
- Send a test message: “Hello, are you working?”