Skip to main content

Use AI

AI in Axiom is optional and off until you configure a provider. Every request is shown to you in full before it is sent, and nothing changes in your files without your review.

Set up a provider​

Add an [ai] section to settings.toml in your config folder (~/.config/axiom on Linux). For a local model server:

[ai]
base_url = "http://localhost:11434/v1"
model = "qwen2.5-coder"

For hosted providers, several models and a route per purpose (chat, inline, edit, agent), see providers and routing. API keys are read from an environment variable you name (api_key_env), never from a file. A folder you open cannot configure or enable AI.

What you can do​

FeatureHowWhat is sent
ChatCtrl+Shift+IYour message and the context you attach (selection, file, problems)
Explain, fix, generate tests, review changesAI menu or palette, with the caret or a selectionThe definition around the caret, or the selection, plus what the command needs
Edit proposalsAI: Edit Selection…The selection and its file; the answer becomes a review you accept file by file
Inline suggestionsAlt+\ after AI: Allow Inline Suggestions in This Folder…A few lines around the caret
AgentAI: Toggle Agent in the paletteNothing until you approve its plan; then only what its tools read

Before anything is sent, a preview shows the destination, model, every piece of context and the exact request. Send sends it; Cancel sends nothing.

The agent​

The agent works towards an objective you type, in steps you can see:

  1. It proposes a plan without seeing your files. You approve it, or not.
  2. It reads files, searches and looks at problems and task results through typed tools. Ignored and secret files (such as .env) and paths outside the folder are refused.
  3. Changes come back as one proposal that opens in the normal review. Nothing is saved for you.
  4. Running a build, check or test task needs a second approval that shows the exact command.
  5. It stops at its limits (steps, tool calls, tokens, time, files, cost) or when you press Stop.

Permissions and turning it off​

  • Sharing a folder's content is a workspace permission; sharing the debugger's state is a separate one.
  • View → AI Enabled turns AI off everywhere. Running requests are cancelled; editing, language features, tasks and debugging carry on unchanged.
  • If the provider is down, the request fails with a reason and Retry; nothing else is affected.