Coding Agents

The Coding agents card sets up a coding agent on your own computer — Claude Code, Visual Studio Code or OpenCode — to use the language models available to you in QAnswer. It builds the configuration for you: your models, your QAnswer address and a new API key, ready to copy.

Open an AI Assistant, select Expose and, under Apps & extensions at the bottom of the Expose page , select Coding agents. A five-step guide opens.

The Apps & extensions section of the Expose page with the Coding agents card
Note
The Apps & extensions section is shown to users with API access. It does not need the Expose add-on: the setup uses your own models and a user API key, not the assistant.
Note
The guide is not tied to the assistant you opened it from. The models are the ones available in the workspace you are working in (your organization and, if one is selected, your team), and the API key is created there.
The Coding agents guide: pick your models, generate an API key, pick your tool, download the tool and configure it

Step 1 — Pick your models

Choose the models the coding agent may use. The first available model is already selected, which is enough to start. Type in the field to search, and select more models to add them; each one is listed in the configuration.

Note
Claude Code works with one model at a time. With more than one model selected, its button is greyed out and the guide switches to another tool. Keep a single model to set up Claude Code.

Step 2 — Generate an API key

Give the key a name (Coding by default) and select Generate key. A confirmation replaces the form, and the key is written into the configuration in step 5. Until you generate one, the configuration shows the placeholder YOUR_API_KEY.

Note
The key is a user key that can only use resources, not change them. It is listed under API Access, where you can copy it again later or delete it to cut off the coding agent.

Step 3 — Pick your tool

Select Claude Code, Visual Studio Code or OpenCode. Steps 4 and 5 follow the tool you pick.

Step 4 — Download the tool

The Download button opens the tool's download page in a new tab. Skip this step if the tool is already installed.

Step 5 — Configure the tool

Copy the configuration with the Copy button and put it where the line above the code says. It already holds your QAnswer address, your API key and the models from step 1.

Claude Code

  • Claude Code (bash) and Claude Code (PowerShell) — commands to run in a terminal. They set the environment variables for this session and start Claude Code with your model.
  • Claude Code (settings) — the same variables as a settings block, for every session. Add it to ~/.claude/settings.json (or .claude/settings.json in a project), merging it with any existing "env" block.

Visual Studio Code

The configuration adds your models to VS Code's chat. In the Command Palette, run "Chat: Open Language Models (JSON)" and paste it.

OpenCode

Save the configuration as ~/.config/opencode/opencode.json (or opencode.json in your project root), then start opencode. Your models appear under the QAnswer provider.

The Coding agents guide with two models selected: Claude Code is greyed out, OpenCode is selected and step 5 shows the opencode.json configuration