Skip to content

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:

PrefixProviderExample
gemini/Google Gemini (AI Studio key)gemini/gemini-3.8-flash
anthropic/Anthropic APIanthropic/claude-sonnet-5-5
none, or openai/OpenAI APIgpt-5.5, openai/gpt-5.5
openai/responses/OpenAI API through /v1/responsesopenai/responses/gpt-6.1-sol
chatgpt/ChatGPT subscription sign-inchatgpt/gpt-6.1-sol
openrouter/OpenRouteropenrouter/<vendor>/<model>
azure/Azure OpenAIazure/<deployment-name>
bedrock/, vertex_ai/Claude on Amazon Bedrock or Google Vertex AIvertex_ai/claude-opus-5-5
litellm_proxy/A LiteLLM proxy serverlitellm_proxy/<model>
ollama_chat/, ollama/Ollamaollama_chat/<model>
hosted_vllm/A vLLM serverhosted_vllm/<model>
lm_studio/LM Studiolm_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:

  1. --model on the command line. It applies to that run only.
  2. model in the project's agent.yaml.
  3. The default, gemini/gemini-3.8-flash.

Set it when you create a project:

bash
xcodon init my-project --model anthropic/claude-sonnet-5-5

Or edit agent.yaml:

yaml
model: anthropic/claude-sonnet-5-5

Or override it for one run:

bash
xcodon run my-project --model openai/responses/gpt-6.1-sol

TUI /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.yaml and sends a one-token test request.
  • Reply k to paste an API key. The key lives in memory for this xcodon process only. It is not written to disk.
  • Reply v to 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:

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.

FieldUsed forFalls back to
plan_modelThe 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_modelThe step validation judge.harness_solution_llm_model, then model
harness_solution_llm_modelThe Solution / Output / Notes pass in harness_report.md.model
reflection_modelThe post-turn reflection pass.model

A common setup is a fast model for the agent loop and a stronger one for planning and review:

yaml
model: gemini/gemini-3.8-flash
plan_model: anthropic/claude-opus-5-5
harness_validation_llm_model: anthropic/claude-opus-5-5

Each provider you name needs its own credentials.

Where credentials live ​

LiteLLM reads provider keys from environment variables. xcodon fills those variables from three places:

SourceHow to set it
Shell environmentexport OPENAI_API_KEY=... before you start xcodon.
~/.xcodon/.envOne NAME=value per line. Lines may start with export. Quotes around the value are removed.
~/.xcodon/settings.jsonThe 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:

  1. Shell environment
  2. ~/.xcodon/.env
  3. ~/.xcodon/settings.json

A ~/.xcodon/.env file:

bash
# 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, then k.
  • 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:

json
{
  "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 idKey variableBase URL variable
starts with openrouter/OPENROUTER_API_KEYOPENROUTER_API_BASE
starts with azure/AZURE_API_KEYAZURE_API_BASE
starts with hosted_vllm/HOSTED_VLLM_API_KEYHOSTED_VLLM_API_BASE
starts with lm_studio/LM_STUDIO_API_KEYLM_STUDIO_API_BASE
starts with litellm_proxy/LITELLM_PROXY_API_KEYLITELLM_PROXY_API_BASE
starts with ollama/ or ollama_chat/OLLAMA_API_KEYOLLAMA_API_BASE
starts with anthropic/ or contains claudeANTHROPIC_API_KEYANTHROPIC_API_BASE
starts with gemini/ or contains geminiGEMINI_API_KEYGEMINI_API_BASE
contains ollamaOLLAMA_API_KEYOLLAMA_API_BASE
starts with openai/, or contains gptOPENAI_API_KEYOPENAI_API_BASE
anything elseOPENAI_API_KEYOPENAI_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 ​

ProviderModel id exampleKey variableOptional base URL variable
Google Geminigemini/gemini-3.8-flashGEMINI_API_KEY or GOOGLE_API_KEYGEMINI_API_BASE
Anthropicanthropic/claude-sonnet-5-5ANTHROPIC_API_KEYANTHROPIC_API_BASE or ANTHROPIC_BASE_URL
OpenAIopenai/responses/gpt-6.1-sol, gpt-5.5OPENAI_API_KEYOPENAI_BASE_URL or OPENAI_API_BASE
OpenRouteropenrouter/<vendor>/<model>OPENROUTER_API_KEY or OR_API_KEYOPENROUTER_API_BASE
Azure OpenAIazure/<deployment-name>AZURE_API_KEY or AZURE_OPENAI_API_KEYAZURE_API_BASE (required), AZURE_API_VERSION

Where two names appear, LiteLLM reads the first one that is set, in the order shown.

Gemini.

bash
GEMINI_API_KEY=AIza...
yaml
model: gemini/gemini-3.8-flash

For 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.

bash
OPENAI_API_KEY=sk-...
yaml
model: openai/responses/gpt-6.1-sol

OpenAI'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.

bash
OPENROUTER_API_KEY=sk-or-...
yaml
model: openrouter/<vendor>/<model>

Azure OpenAI. LiteLLM uses the part after azure/ as your deployment name.

bash
AZURE_API_KEY=...
AZURE_API_BASE=https://<your-resource>.openai.azure.com
AZURE_API_VERSION=<api-version>
yaml
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.

yaml
model: chatgpt/gpt-6.1-sol

After v0.6.1, the TUI /model menu and the web model picker list these ids under ChatGPT subscription:

Model idLabel
chatgpt/gpt-6.2-solChatGPT GPT-6.2 Sol
chatgpt/gpt-6.2-astraChatGPT GPT-6.2 Astra
chatgpt/gpt-6.1-solChatGPT GPT-6.1 Sol
chatgpt/gpt-6.1-terraChatGPT GPT-6.1 Terra
chatgpt/gpt-6-lunaChatGPT GPT-6 Luna
chatgpt/gpt-5.5ChatGPT 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:

  1. It prints a web address (https://auth.openai.com/codex/device) and a one-time code.
  2. You open the address in a browser and enter the code.
  3. 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:

bash
xcodon chatgpt-login

LiteLLM 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:

  1. Click Sign in to ChatGPT.
  2. The page shows the sign-in address and a one-time code.
  3. Open the address, enter the code, and wait. The page checks every few seconds.
  4. 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/completions and 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. /responses accepts both. xcodon never sends reasoning_effort: none to these ids.

Limits ​

  • LiteLLM forwards only these request fields: model, input, instructions, stream, store, include, tools, tool_choice, reasoning, previous_response_id, truncation and a recognized service_tier. Temperature and output-token limits are not sent.
  • LiteLLM adds its own default instructions in front of xcodon's system prompt. CHATGPT_DEFAULT_INSTRUCTIONS replaces that text.
  • LiteLLM sets store to 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 /model menu does not list ACP agents. Use the web picker or agent.yaml.

Set up Antigravity ​

  1. Install the agy command on the machine that runs xcodon:

    bash
    curl -fsSL https://antigravity.google/cli/install.sh | bash
  2. Sign in once in a terminal: run agy, or agy acp --login.

  3. Pick the agent in one of these ways:

    • Web: choose Antigravity (agy) — direct mode only in the model picker. The form says whether agy is installed on the server.
    • agent.yaml: set model: acp/antigravity.
    • agent.yaml: keep your model and set direct_mode_agent: antigravity. This field wins over the model id.

For a headless project, create it in direct mode:

bash
xcodon init my-task --model acp/antigravity --run-mode direct

A 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_step seconds (default 60) 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, with direct_mode_tool_search, the tool search, as a Model Context Protocol (MCP) server. Set xcodon_tools: false on 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.

bash
ANTHROPIC_API_KEY=sk-ant-...
yaml
model: anthropic/claude-sonnet-5-5

Amazon Bedrock. LiteLLM reads the standard Amazon Web Services (AWS) variables:

bash
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION_NAME=us-east-1
yaml
model: bedrock/us.anthropic.claude-opus-5-5

Google Vertex AI. LiteLLM reads VERTEXAI_PROJECT and VERTEXAI_LOCATION. For credentials it reads VERTEXAI_CREDENTIALS, else your Google Cloud default credentials.

bash
VERTEXAI_PROJECT=<your-project-id>
VERTEXAI_LOCATION=<region>
yaml
model: vertex_ai/claude-opus-5-5

How 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: required or a named tool. xcodon sends auto instead.
  • 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:

bash
LITELLM_PROXY_API_BASE=http://<proxy-host>:<port>
LITELLM_PROXY_API_KEY=<proxy-key>
yaml
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:

bash
OPENAI_API_BASE=https://<gateway-host>/v1
OPENAI_API_KEY=<gateway-key>
yaml
model: openai/<model-name-on-the-server>

Notes:

  • LiteLLM appends /chat/completions to the base URL. Include the path up to that point, often /v1.
  • LiteLLM reads OPENAI_BASE_URL before OPENAI_API_BASE. If both are set, OPENAI_BASE_URL wins.
  • The OpenAI client needs a key value. If the server needs none, set OPENAI_API_KEY to any placeholder.
  • In the web UI, an openai/ id maps the Base URL field to OPENAI_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/.

bash
# Optional: the default is http://localhost:11434
OLLAMA_API_BASE=http://localhost:11434
yaml
model: 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).

bash
HOSTED_VLLM_API_BASE=http://<host>:<port>/v1
yaml
model: 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:

bash
# Start vLLM with tool-call support (pick the parser for your model)
vllm serve <model> --enable-auto-tool-choice --tool-call-parser <parser>
yaml
# Or tell xcodon never to send tool_choice
llm_tool_choice: null

In 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).

bash
LM_STUDIO_API_BASE=http://<host>:<port>/v1
yaml
model: 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):

bash
XCODON_LLM_TIMEOUT_SCALE=3

Tuning ​

These fields go in agent.yaml.

yaml
llm_temperature: 0.2
llm_tool_choice: auto
agent_reasoning_effort: high
plan_reasoning_effort: high
validation_reasoning_effort: high
FieldDefaultValuesEffect
llm_temperature0.20.0–2.0, or nullTemperature for the agent loop and the /compact summary. null leaves it to the provider.
llm_tool_choiceautoauto, null, required, noneauto 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_efforthighlow, medium, high, xhigh, max, nullThinking budget for the agent loop. null sends nothing.
plan_reasoning_efforthighlow, medium, high, xhigh, maxThinking budget for planning, the plan-instruction review and the end-of-run referee.
validation_reasoning_efforthighlow, medium, high, xhigh, max, nullThinking 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:

CallBase deadline
One agent loop request600 s
One-shot calls (plan, summaries, reflection)600 s
The startup connection test120 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 run tests the model before it starts. On failure it prints LLM check failed: with hints and exits with code 1.
  • In the TUI, /model then v tests 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 ​

SymptomLikely causeFix
"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 keyLiteLLM 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 temperatureThe model accepts only its default temperature.Set llm_temperature: null.
HTTP 400 about tool_choiceThe model or server refuses a forced tool choice.Set llm_tool_choice: null.
vLLM returns 400 on the first agent callvLLM 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 toolsAn OpenAI reasoning model on the chat completions route.Use openai/responses/<model>.
Connection refused, 404, or requests go to the wrong hostWrong 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 serverThe 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 agentThe agent has no stored sign-in.Run agy once in a terminal and sign in, then try again.

Released under the PolyForm Noncommercial License 1.0.0.