LLM configuration
xcodon talks to large language models (LLMs) through LiteLLM. LiteLLM turns one model id into a call to the right provider. This page shows how to pick a model, where to put credentials, and how to reach hosted providers, a ChatGPT subscription, gateways and local servers. It also shows how to hand direct-mode work to a coding agent such as Antigravity instead of a model.
The agent loop sends tools on every request. Pick a model that supports tool calling (also called function calling). A model without it cannot run the agent.
Version note
Parts of this page describe code newer than release v0.6.1. They are marked After v0.6.1. They are on the main branch but not yet in a release.
How xcodon picks the model
Model ids
A model id is a LiteLLM id. Most ids start with a provider prefix and a slash:
| Prefix | Provider | Example |
|---|---|---|
gemini/ | Google Gemini (AI Studio key) | gemini/gemini-3.8-flash |
anthropic/ | Anthropic API | anthropic/claude-sonnet-5-5 |
none, or openai/ | OpenAI API | gpt-5.5, openai/gpt-5.5 |
openai/responses/ | OpenAI API through /v1/responses | openai/responses/gpt-6.1-sol |
chatgpt/ | ChatGPT subscription sign-in | chatgpt/gpt-6.1-sol |
openrouter/ | OpenRouter | openrouter/<vendor>/<model> |
azure/ | Azure OpenAI | azure/<deployment-name> |
bedrock/, vertex_ai/ | Claude on Amazon Bedrock or Google Vertex AI | vertex_ai/claude-opus-5-5 |
litellm_proxy/ | A LiteLLM proxy server | litellm_proxy/<model> |
ollama_chat/, ollama/ | Ollama | ollama_chat/<model> |
hosted_vllm/ | A vLLM server | hosted_vllm/<model> |
lm_studio/ | LM Studio | lm_studio/<model> |
acp/ | A coding agent over the Agent Client Protocol (ACP), not a LiteLLM model. After v0.6.1. | acp/antigravity |
The default model is gemini/gemini-3.8-flash. LiteLLM's provider list has every prefix except acp/, which is xcodon's own (see Coding agents over ACP).
Where the model is set
xcodon resolves the model in this order:
--modelon the command line. It applies to that run only.modelin the project'sagent.yaml.- The default,
gemini/gemini-3.8-flash.
Set it when you create a project:
xcodon init my-project --model anthropic/claude-sonnet-5-5Or edit agent.yaml:
model: anthropic/claude-sonnet-5-5Or override it for one run:
xcodon run my-project --model openai/responses/gpt-6.1-solTUI /model menu. In the text user interface (TUI), /model opens a menu:
- Reply with a number to pick a listed model, or type any LiteLLM id. xcodon saves it to
agent.yamland sends a one-token test request. - Reply
kto paste an API key. The key lives in memory for this xcodon process only. It is not written to disk. - Reply
vto test the current model.
/model <id> saves the id to agent.yaml and tests it in one step.
Web model picker. The web workbench (xcodon serve or xcodon onboard) shows the same model list in a drop-down, grouped by provider. Choose Other to type any LiteLLM id. The model goes to agent.yaml.
The list in both places holds current Google, Anthropic and OpenAI models. Any other LiteLLM id still works when you type it. After v0.6.1, the list also holds:
- ChatGPT subscription models (
chatgpt/…), in both places. See ChatGPT subscription. - The Antigravity coding agent (
acp/antigravity), in the web picker only. See Coding agents over ACP.
For these two kinds, the web form shows a sign-in panel in place of the API key fields.
Separate models for planning and review
A few calls can use their own model. Each one falls back to model when unset.
| Field | Used for | Falls back to |
|---|---|---|
plan_model | The research plan and its regeneration, the plan-instruction review, /codon plan, /codon split suggestions, skill keyword extraction and the skill match gate. | model |
harness_validation_llm_model | The step validation judge. | harness_solution_llm_model, then model |
harness_solution_llm_model | The Solution / Output / Notes pass in harness_report.md. | model |
reflection_model | The post-turn reflection pass. | model |
A common setup is a fast model for the agent loop and a stronger one for planning and review:
model: gemini/gemini-3.8-flash
plan_model: anthropic/claude-opus-5-5
harness_validation_llm_model: anthropic/claude-opus-5-5Each provider you name needs its own credentials.
Where credentials live
LiteLLM reads provider keys from environment variables. xcodon fills those variables from three places:
| Source | How to set it |
|---|---|
| Shell environment | export OPENAI_API_KEY=... before you start xcodon. |
~/.xcodon/.env | One NAME=value per line. Lines may start with export. Quotes around the value are removed. |
~/.xcodon/settings.json | The web workbench's Save defaults button (or Save host defaults in project settings). |
At startup, the command-line interface (CLI) and the web server load .env first, then settings.json. Each source sets only variables that are still unset. So the order of precedence is:
- Shell environment
~/.xcodon/.env~/.xcodon/settings.json
A ~/.xcodon/.env file:
# Set only the keys your providers need.
GEMINI_API_KEY=AIza...
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
OPENROUTER_API_KEY=sk-or-...Session-only keys. Some actions set a key for the running process only and write nothing to disk:
- TUI:
/model, thenk. - Web: Apply to session and Create project on the new-project page, and Save project in project settings.
These override the shell value for that process.
settings.json and the base URL field
Save defaults writes the model, one API key and one base URL to ~/.xcodon/settings.json. The file mode is 600 (readable by you only). It looks like this:
{
"version": 1,
"model": "anthropic/claude-sonnet-5-5",
"api_key": "sk-ant-...",
"base_url": null,
"env": {}
}The web UI uses model to pre-fill the model for a new project. xcodon maps api_key and base_url to environment variables by looking at the model id. It checks the rules in this order and uses the first match:
| Model id | Key variable | Base URL variable |
|---|---|---|
starts with openrouter/ | OPENROUTER_API_KEY | OPENROUTER_API_BASE |
starts with azure/ | AZURE_API_KEY | AZURE_API_BASE |
starts with hosted_vllm/ | HOSTED_VLLM_API_KEY | HOSTED_VLLM_API_BASE |
starts with lm_studio/ | LM_STUDIO_API_KEY | LM_STUDIO_API_BASE |
starts with litellm_proxy/ | LITELLM_PROXY_API_KEY | LITELLM_PROXY_API_BASE |
starts with ollama/ or ollama_chat/ | OLLAMA_API_KEY | OLLAMA_API_BASE |
starts with anthropic/ or contains claude | ANTHROPIC_API_KEY | ANTHROPIC_API_BASE |
starts with gemini/ or contains gemini | GEMINI_API_KEY | GEMINI_API_BASE |
contains ollama | OLLAMA_API_KEY | OLLAMA_API_BASE |
starts with openai/, or contains gpt | OPENAI_API_KEY | OPENAI_API_BASE |
| anything else | OPENAI_API_KEY | OPENAI_API_BASE |
The web form shows the variable name next to each field. A provider prefix wins over a vendor name inside the id: openrouter/anthropic/claude-sonnet-5-5 uses the OpenRouter variables. Variables the form does not set, such as AZURE_API_VERSION, go in the shell or in ~/.xcodon/.env.
The web UI refuses to save a key whose prefix does not match the model's provider. For example, an sk-ant- key with a gpt- model fails. It skips this check when you also give a base URL, and for Azure, vLLM, LM Studio, the LiteLLM proxy and Ollama, whose keys have no fixed prefix. After v0.6.1, it also skips chatgpt/ and acp/ ids, which sign in without an API key.
Hosted providers with API keys
| Provider | Model id example | Key variable | Optional base URL variable |
|---|---|---|---|
| Google Gemini | gemini/gemini-3.8-flash | GEMINI_API_KEY or GOOGLE_API_KEY | GEMINI_API_BASE |
| Anthropic | anthropic/claude-sonnet-5-5 | ANTHROPIC_API_KEY | ANTHROPIC_API_BASE or ANTHROPIC_BASE_URL |
| OpenAI | openai/responses/gpt-6.1-sol, gpt-5.5 | OPENAI_API_KEY | OPENAI_BASE_URL or OPENAI_API_BASE |
| OpenRouter | openrouter/<vendor>/<model> | OPENROUTER_API_KEY or OR_API_KEY | OPENROUTER_API_BASE |
| Azure OpenAI | azure/<deployment-name> | AZURE_API_KEY or AZURE_OPENAI_API_KEY | AZURE_API_BASE (required), AZURE_API_VERSION |
Where two names appear, LiteLLM reads the first one that is set, in the order shown.
Gemini.
GEMINI_API_KEY=AIza...model: gemini/gemini-3.8-flashFor Gemini 3 and later, xcodon sends no temperature. LiteLLM then uses its default of 1.0. Lower values can make these models loop or reason worse.
OpenAI.
OPENAI_API_KEY=sk-...model: openai/responses/gpt-6.1-solOpenAI's chat completions endpoint refuses reasoning_effort on a request that carries tools for GPT-6 and the o series. The agent loop always carries tools. So for those ids on the plain route, xcodon sends reasoning_effort: none in the agent loop. Some models refuse none too; gpt-6.1-sol is one. Use the openai/responses/<model> id instead. LiteLLM sends it to /v1/responses, which accepts reasoning effort and tools together. The model list offers GPT-6 models this way.
OpenRouter.
OPENROUTER_API_KEY=sk-or-...model: openrouter/<vendor>/<model>Azure OpenAI. LiteLLM uses the part after azure/ as your deployment name.
AZURE_API_KEY=...
AZURE_API_BASE=https://<your-resource>.openai.azure.com
AZURE_API_VERSION=<api-version>model: azure/<deployment-name>ChatGPT subscription (chatgpt/ models)
A chatgpt/ id uses your ChatGPT account instead of an API key. This uses OpenAI's ChatGPT sign-in through LiteLLM's chatgpt provider. xcodon runs LiteLLM's own sign-in steps and stores no tokens of its own. Check that OpenAI's terms for your plan allow this use before you rely on it.
model: chatgpt/gpt-6.1-solAfter v0.6.1, the TUI /model menu and the web model picker list these ids under ChatGPT subscription:
| Model id | Label |
|---|---|
chatgpt/gpt-6.2-sol | ChatGPT GPT-6.2 Sol |
chatgpt/gpt-6.2-astra | ChatGPT GPT-6.2 Astra |
chatgpt/gpt-6.1-sol | ChatGPT GPT-6.1 Sol |
chatgpt/gpt-6.1-terra | ChatGPT GPT-6.1 Terra |
chatgpt/gpt-6-luna | ChatGPT GPT-6 Luna |
chatgpt/gpt-5.5 | ChatGPT GPT-5.5 |
In v0.6.1, type the id instead. Any other chatgpt/ id works too (see What xcodon does for chatgpt/ ids).
Sign in
LiteLLM signs in with a device code:
- It prints a web address (
https://auth.openai.com/codex/device) and a one-time code. - You open the address in a browser and enter the code.
- LiteLLM stores the tokens in
~/.config/litellm/chatgpt/auth.json.
Later calls reuse the stored token. LiteLLM refreshes it with the stored refresh token when it expires. Set CHATGPT_TOKEN_DIR to change the folder, or CHATGPT_AUTH_FILE to change the file name.
xcodon signs in for you before it starts work. This happens when xcodon run, the terminal UI or a /codon command uses a chatgpt/ model. It also happens when xcodon onboard or xcodon serve starts and the saved default model is a chatgpt/ model. With a stored token, this takes no input.
To sign in on its own, or again after a failed sign-in:
xcodon chatgpt-loginLiteLLM cannot start the sign-in inside work that is already running. So if you switch to a chatgpt/ model inside a running session (for example with /model), xcodon reports that a sign-in is needed. Run xcodon chatgpt-login in a terminal, then try again.
Sign in from the web page. After v0.6.1. When you pick a chatgpt/ model in the web workbench, the form shows a Sign in to ChatGPT button in place of the API key fields:
- Click Sign in to ChatGPT.
- The page shows the sign-in address and a one-time code.
- Open the address, enter the code, and wait. The page checks every few seconds.
- The page shows Signed in to ChatGPT.
The server stores the tokens in the same file that xcodon chatgpt-login writes. The sign-in lives on the machine that runs xcodon serve, not in your browser.
LiteLLM warns that device codes are a common phishing target. Do not share the code.
What xcodon does for chatgpt/ ids
- Always streams. LiteLLM's bridge loses tool calls and reasoning on non-streamed replies from this backend. xcodon streams every
chatgpt/call and rebuilds the full reply. - Uses the Responses route. An id missing from LiteLLM's model list would go to
/chat/completionsand get a 403 page. xcodon registers such ids so LiteLLM sends them to/responses. - Joins system message blocks. The backend refuses a system message made of a block list. xcodon joins the blocks into one string.
- Shares one session. The backend reuses a cached prompt only within one session. LiteLLM starts a new session for each request unless told otherwise. xcodon sends one session id for the whole process, so repeated prompt starts hit the cache.
- Keeps reasoning effort beside tools.
/responsesaccepts both. xcodon never sendsreasoning_effort: noneto these ids.
Limits
- LiteLLM forwards only these request fields:
model,input,instructions,stream,store,include,tools,tool_choice,reasoning,previous_response_id,truncationand a recognizedservice_tier. Temperature and output-token limits are not sent. - LiteLLM adds its own default instructions in front of xcodon's system prompt.
CHATGPT_DEFAULT_INSTRUCTIONSreplaces that text. - LiteLLM sets
storeto false on every request. - Your ChatGPT plan's usage limits apply. A long run can reach them and stop.
Coding agents over ACP (Antigravity)
After v0.6.1.
The Agent Client Protocol (ACP) lets a program drive a coding agent over its standard input and output. xcodon can send every direct-mode turn to such an agent instead of a LiteLLM model. The built-in preset is antigravity (alias agy), which starts Google's Antigravity command-line agent with agy acp. The agent uses its own model and its own sign-in, so xcodon needs no API key.
Limits:
- Direct mode only. An ACP agent runs your own plan or a typed task. A paper, a research template or a software project runs in plan mode, which needs a LiteLLM model. xcodon refuses to start an ACP agent in plan mode.
- Not in the TUI menu. The TUI
/modelmenu does not list ACP agents. Use the web picker oragent.yaml.
Set up Antigravity
Install the
agycommand on the machine that runs xcodon:bashcurl -fsSL https://antigravity.google/cli/install.sh | bashSign in once in a terminal: run
agy, oragy acp --login.Pick the agent in one of these ways:
- Web: choose Antigravity (agy) — direct mode only in the model picker. The form says whether
agyis installed on the server. agent.yaml: setmodel: acp/antigravity.agent.yaml: keep your model and setdirect_mode_agent: antigravity. This field wins over the model id.
- Web: choose Antigravity (agy) — direct mode only in the model picker. The form says whether
For a headless project, create it in direct mode:
xcodon init my-task --model acp/antigravity --run-mode directA one-shot or headless xcodon run checks three things before it starts: the project runs in direct mode, the preset exists with protocol: acp, and its command is on the PATH. It does not check the sign-in. If the agent has no stored sign-in, the turn stops with a message that says how to sign in.
What the agent gets
- Every turn. The work turn, the finish turns, each review and each fix round go to the agent. So do the side calls, such as the list of conditions to review.
- A time limit, not a call cap. xcodon cannot count an agent's model calls. Each turn gets
direct_mode_agent_sec_per_stepseconds (default60) per call it would have had. The work turn's 150 calls at 60 s give 2.5 hours. - One review. With
direct_mode_reviews: auto(the default), an ACP agent gets only the last review, not one per condition. - xcodon's tools. The agent works in the project folder with its own shell and file tools. It also gets xcodon's script tools (
coala_execute_python,coala_execute_r) and, withdirect_mode_tool_search, the tool search, as a Model Context Protocol (MCP) server. Setxcodon_tools: falseon the preset to leave them out. - Skills from the setup page. The agent gets the domain skills you chose on the setup page. It gets no automatic skill lookup.
Preset options such as the agent's session mode, its model and its answer to permission requests are in tools.external_cli. The same preset also works as a one-off handoff: /codon antigravity <request> sends one request to the agent.
Claude
Use Claude through an Anthropic API key or a cloud provider.
No Claude subscription login
A Claude Pro or Max subscription login cannot be used with xcodon. Anthropic's terms allow subscription (OAuth) logins only in Claude Code and Anthropic's own apps. Developers must use an API key from the Claude Console or a supported cloud provider. Source: Claude Code legal and compliance.
Anthropic API key.
ANTHROPIC_API_KEY=sk-ant-...model: anthropic/claude-sonnet-5-5Amazon Bedrock. LiteLLM reads the standard Amazon Web Services (AWS) variables:
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION_NAME=us-east-1model: bedrock/us.anthropic.claude-opus-5-5Google Vertex AI. LiteLLM reads VERTEXAI_PROJECT and VERTEXAI_LOCATION. For credentials it reads VERTEXAI_CREDENTIALS, else your Google Cloud default credentials.
VERTEXAI_PROJECT=<your-project-id>
VERTEXAI_LOCATION=<region>model: vertex_ai/claude-opus-5-5How xcodon handles Claude
xcodon reads the family and version from the Claude id. It then adjusts each request:
- No custom temperature on Opus 4.7 and later, Sonnet 5 and later, Fable and Mythos. These models refuse any temperature other than 1. xcodon sends none.
- No forced tool call on Opus 5.5, Sonnet 5.5, Fable 5.1, Mythos 5.1 and later. These models refuse
tool_choice: requiredor a named tool. xcodon sendsautoinstead. - Thinking rules. Opus 5+, Sonnet 5+, Fable and Mythos think by default. Older Claude models think when xcodon sends a reasoning effort. While a model thinks, xcodon drops a custom temperature and turns a forced tool choice into
auto. - Prompt cache markers. With
prompt_cache.enabled: true(the default), xcodon marks the stable part of the system prompt for caching. See Configuration.
Gateways and OpenAI-compatible endpoints
You can send requests through a gateway or any server that speaks OpenAI's chat completions format.
LiteLLM proxy
Use the litellm_proxy/ prefix and two variables:
LITELLM_PROXY_API_BASE=http://<proxy-host>:<port>
LITELLM_PROXY_API_KEY=<proxy-key>model: litellm_proxy/<model-name-on-the-proxy>LiteLLM also sends every model through the proxy when USE_LITELLM_PROXY=true is set. The model id then keeps its usual form, such as anthropic/claude-sonnet-5-5.
Any OpenAI-compatible server
Use the openai/ prefix and point the OpenAI base URL at the server:
OPENAI_API_BASE=https://<gateway-host>/v1
OPENAI_API_KEY=<gateway-key>model: openai/<model-name-on-the-server>Notes:
- LiteLLM appends
/chat/completionsto the base URL. Include the path up to that point, often/v1. - LiteLLM reads
OPENAI_BASE_URLbeforeOPENAI_API_BASE. If both are set,OPENAI_BASE_URLwins. - The OpenAI client needs a key value. If the server needs none, set
OPENAI_API_KEYto any placeholder. - In the web UI, an
openai/id maps the Base URL field toOPENAI_API_BASE. Apply to session sets it for the running server only.
Each provider also has its own base URL variable, such as ANTHROPIC_API_BASE or GEMINI_API_BASE (see the table under Hosted providers). Use one to send a provider's native format through a gateway.
Local models
Local servers need tool calling for the agent loop. Choose a model and a server setup that support tool calls.
Ollama
Use ollama_chat/. It calls Ollama's /api/chat endpoint. LiteLLM lists tools and tool_choice as supported for ollama_chat/ but not for ollama/.
# Optional: the default is http://localhost:11434
OLLAMA_API_BASE=http://localhost:11434model: ollama_chat/<model>Ollama usually needs no key. Set OLLAMA_API_KEY if your server needs one.
vLLM
Use hosted_vllm/ and HOSTED_VLLM_API_BASE. LiteLLM has no default address for vLLM. The key is optional (HOSTED_VLLM_API_KEY).
HOSTED_VLLM_API_BASE=http://<host>:<port>/v1model: hosted_vllm/<model>A vLLM server returns HTTP 400 for any tool_choice unless it was started with tool-call support. Do one of these:
# Start vLLM with tool-call support (pick the parser for your model)
vllm serve <model> --enable-auto-tool-choice --tool-call-parser <parser># Or tell xcodon never to send tool_choice
llm_tool_choice: nullIn the web form, the Base URL field sets HOSTED_VLLM_API_BASE for a hosted_vllm/ id.
LM Studio
Use lm_studio/ and LM_STUDIO_API_BASE. LiteLLM has no default address for LM Studio. The key is optional (LM_STUDIO_API_KEY).
LM_STUDIO_API_BASE=http://<host>:<port>/v1model: lm_studio/<model>Other local servers
A local server with an OpenAI-compatible chat completions endpoint works through the openai/ route. See Any OpenAI-compatible server.
Slow local servers
A local server can take minutes per reply. Raise every LLM timeout with one multiplier (see Timeouts):
XCODON_LLM_TIMEOUT_SCALE=3Tuning
These fields go in agent.yaml.
llm_temperature: 0.2
llm_tool_choice: auto
agent_reasoning_effort: high
plan_reasoning_effort: high
validation_reasoning_effort: high| Field | Default | Values | Effect |
|---|---|---|---|
llm_temperature | 0.2 | 0.0–2.0, or null | Temperature for the agent loop and the /compact summary. null leaves it to the provider. |
llm_tool_choice | auto | auto, null, required, none | auto sends none, and sends required once after a turn that answered in prose instead of acting. null never sends one. Other values go on every request that carries tools. |
agent_reasoning_effort | high | low, medium, high, xhigh, max, null | Thinking budget for the agent loop. null sends nothing. |
plan_reasoning_effort | high | low, medium, high, xhigh, max | Thinking budget for planning, the plan-instruction review and the end-of-run referee. |
validation_reasoning_effort | high | low, medium, high, xhigh, max, null | Thinking budget for the validation judge and the run-end fabrication review. null sends nothing. |
xcodon never sends a custom temperature to models that refuse one: the GPT-5 family, GPT-6 and later, the o series, Gemini 3 and later, and the Claude models listed in How xcodon handles Claude. It sends reasoning_effort only when LiteLLM says the model accepts it. xhigh and max go only to models whose LiteLLM entry lists them, such as GPT-6.x. Other models get the highest level they take: max becomes xhigh or high.
On tool-bearing calls, GPT-6.1 Terra thinks for almost no tokens at high and xhigh. At max, it thinks for several hundred tokens before it acts. If a GPT-6.x run shows near-zero reasoning in the notebook's Token usage lines, try agent_reasoning_effort: max.
For one-shot calls (planning, review, summaries), xcodon also learns from a refusal. If the provider rejects temperature, max_tokens or reasoning_effort beside tools, xcodon fixes the request and sends it once more.
Timeouts
xcodon gives each LLM request a deadline:
| Call | Base deadline |
|---|---|
| One agent loop request | 600 s |
| One-shot calls (plan, summaries, reflection) | 600 s |
| The startup connection test | 120 s |
XCODON_LLM_TIMEOUT_SCALE multiplies all of them. 2 doubles every deadline. An unset, non-numeric, zero or negative value leaves them as they are.
Test the connection
xcodon has no separate test command. It tests the model with a one-token request in these places:
xcodon runtests the model before it starts. On failure it printsLLM check failed:with hints and exits with code 1.- In the TUI,
/modelthenvtests the current model./model <id>tests the new model after it saves it. - The TUI tests the model at start. On failure, fix the keys and type
retry.
The test makes up to three attempts when the connection drops. A key or model error fails at once.
For an acp/ id (after v0.6.1), xcodon sends no request. It checks that the preset exists with protocol: acp and that its command is on the PATH.
XCODON_SKIP_LLM_CHECK=1 skips the test. Use it for automation only.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| "The API key was rejected for model …" | The key is missing, wrong, or belongs to another provider. | Check the key variable for the model (see Where credentials live). A shell export wins over .env and settings.json, so an old export can hide a new key. |
| "Model … is Anthropic, but this API key looks like OpenAI" | Model and key belong to different providers. | Change the model or the key so they match. |
| "Model … needs a ChatGPT sign-in, and none is stored" | No stored ChatGPT sign-in, or the refresh failed. | Run xcodon chatgpt-login in a terminal, or use Sign in to ChatGPT on the web page (after v0.6.1), then try again. See Sign in. |
| Gemini uses the wrong key | LiteLLM reads GOOGLE_API_KEY before GEMINI_API_KEY. | Unset the one you do not want. |
| "The provider refused model … (HTTP 403)" | The key reached the provider, but it will not serve this model to this key. | Choose another model or check the account behind the key. |
HTTP 400 about temperature | The model accepts only its default temperature. | Set llm_temperature: null. |
HTTP 400 about tool_choice | The model or server refuses a forced tool choice. | Set llm_tool_choice: null. |
| vLLM returns 400 on the first agent call | vLLM was started without tool-call support. | Start it with --enable-auto-tool-choice --tool-call-parser <parser>, or set llm_tool_choice: null. |
HTTP 400 about reasoning_effort with function tools | An OpenAI reasoning model on the chat completions route. | Use openai/responses/<model>. |
| Connection refused, 404, or requests go to the wrong host | Wrong base URL, or the wrong variable for the prefix. | Check the base URL variable for the prefix (for example HOSTED_VLLM_API_BASE for hosted_vllm/). Include /v1 where the server expects it. Check that OPENAI_BASE_URL is not set when you mean OPENAI_API_BASE. |
| Timeout on a slow or busy server | The reply took longer than the deadline. | Set XCODON_LLM_TIMEOUT_SCALE, for example 3. |
| "An ACP coding agent runs only in direct mode" | The project runs in plan mode with an acp/ model or direct_mode_agent. | Pick a LiteLLM model, or run your own plan or a typed task in direct mode. |
"The ACP agent … needs agy, which is not on PATH" | Antigravity is not installed on the machine that runs xcodon. | Install it (see Set up Antigravity). |
| "… needs a sign-in" from an ACP agent | The agent has no stored sign-in. | Run agy once in a terminal and sign in, then try again. |
