Skip to main content

Agents

Parolsh talks to AI agents through the Agent Client Protocol (ACP). It never calls an LLM API itself: the agent does. Each agent keeps its own login, models and settings (~/.claude, ~/.codex, ~/.gemini, ~/.qwen, ...), and Parolsh does not replace them. Any program that speaks ACP over stdio works.

This page is about setting agents up. What happens while you talk to one (turns, permissions, background turns, pairing) is in Working with agents.

Each agent is one [agents.<name>] table in ~/.config/parolsh/config.toml. The package installs a sample with every agent below, commented out, in /usr/share/doc/parolsh/config.sample.toml (see Configuration).

default_agent = "claude"

[agents.claude]
command = "claude-agent-acp" # program that speaks ACP
args = [] # its arguments
env = { } # extra environment variables for it
mode = "default" # the agent's own mode; omit to keep its default
options = { effort = "low" } # the agent's own config options

Switching agents​

default_agent is the agent Parolsh starts. To use another one:

[claude] ~/projects/wallet ✦ #agent codex
Agent changed to codex. Started a new conversation.

#agent <name> stops the running agent and starts the other one, with a new conversation. It lasts until you leave Parolsh; default_agent does not change. #agent prints the agent in use.

To start with another one, parolsh --agent codex: that agent is started in place of the default one, the project's included, for that run. It is how a terminal profile or an alias gets its own agent.

parolsh --agent codex
parolsh --agent claudelocal --input=shell
  • The name is one of the configured agents: another is an error before anything starts, with the names that are.
  • #cd to another project keeps it, as it keeps an agent chosen with #agent.
  • Not with --resume or --continue, where the session's own agent is used, nor with -c, which runs without one.

#agent list shows every configured agent and its mode; * marks the one in use. For that one, it also shows the modes the agent offers, with * on the current mode:

* claude claude-agent-acp mode: auto
offers: default, acceptEdits, plan, auto*, bypassPermissions
codex codex-acp mode: agent

Modes​

mode is the agent's own session mode id, as the agent names it: Parolsh sets it on every new conversation and does not translate it. Without mode, the agent starts in its own default.

If the agent does not offer that mode, it stays in its current one and Parolsh prints a notice with the modes it does offer. Some agents (Kilo Code) have no session modes but a mode option: mode sets that instead.

Whatever the mode, when the agent asks for permission, Parolsh shows the agent's options and waits for your choice (see During a turn).

Options​

Agents offer config options: reasoning effort, model, fast mode, and so on. options sets them, with the agent's own ids and values, on every new conversation:

[agents.claude]
command = "claude-agent-acp"
options = { effort = "low", model = "sonnet" }

#options shows what the running agent offers, with * on the current value, and #options <id> <value> changes one for the running agent process:

[claude] ~/projects/wallet ✦ #options
mode default*, acceptEdits, plan, auto, bypassPermissions
model default*, opus[1m], claude-fable-5-1[1m], sonnet, haiku
effort default, low*, medium, high, xhigh, max
fast on, off*
[claude] ~/projects/wallet ✦ #options model sonnet
model = sonnet, until you leave Parolsh.

What #options <id> <value> changed stays with that process, not in the configuration:

  • Kept in the new conversations the same process opens: #new, #cd when the agent is not restarted, #resume of a session with the same agent.
  • Lost when Parolsh starts a new agent process, which takes mode and options from the configuration again: #agent <name> (switching back too), a #cd that restarts the agent (see Lifecycle), Ctrl+Z (you go on in a second process, see Turns in the background), a #resume of a session with another agent, and #new after the agent stopped or did not confirm a cancel.

To keep a value, put it in options.

An option or value the agent does not offer is reported with what it does offer, and the conversation keeps going. The list can change: Claude drops fast for models without a fast mode. Options are values the agent reports for your account and version, so check #options rather than this page.

options merges key by key: a project can change one option.

Less thinking​

No agent turns reasoning off through a standard switch; each has its own option or setting:

AgentOptionLeast thinking
Claudeeffortlow
Codexreasoning_effortlow
Qwen Code"reasoning": false in ~/.qwen/settings.json, see Qwen Codeoff
Kilo Codeeffortthe lowest value #options lists
OpenCodeeffort, only for models that have itthe lowest value #options lists
Gemini CLI, Goosenone through ACPtheir own settings

How Parolsh displays the reasoning is separate: thinking in the configuration shows it in the status line (default), hides it, or prints it.

API keys​

Keep keys in your shell environment, for example in ~/.bashrc:

export OPENAI_API_KEY=sk-...

The agent inherits them through Parolsh. env works for keys too, but then the key sits in plain text in config.toml. Use env for base URLs, model names and switches. env is only read from the global file, see What a project can change.

Summary​

AgentACP commandLogin or keyModes (agent default in bold)
Claudeclaude-agent-acpClaude Code login, ANTHROPIC_API_KEYdefault, acceptEdits, plan, auto, bypassPermissions
Codexcodex-acpChatGPT login, OPENAI_API_KEYread-only, agent, agent-full-access
Gemini CLIgemini --acpGEMINI_API_KEY, Vertex AIdefault, autoEdit, yolo, plan
Qwen Codeqwen --acp~/.qwen/settings.json, OpenAI-compatible keyplan, default, auto-edit, auto, yolo
Kilo Codekilo acpkilo auth loginnone (set in Kilo)
OpenCodeopencode acpopencode auth login, free modelsnone (mode option: build, plan)
Any OpenAI-compatible APIqwen --acpOPENAI_API_KEYQwen Code's
Goosegoose acpprovider keyapprove, smart_approve, chat, auto
Tested

Claude (claude-agent-acp 0.81), Codex (codex-acp 1.13) and Qwen Code (0.24) are tested with Parolsh; their modes are the ones they reported. So are Kilo Code (7.8), OpenCode (2.0.26) and Goose (1.54). Gemini CLI comes from its documentation and source code as of September 2026. Agents change their modes between versions: #agent list shows what the running one offers.

Claude​

Claude Code, through the ACP adapter. Needs Node.js 22 or newer.

npm install -g @agentclientprotocol/claude-agent-acp

It uses your Claude Code login, or ANTHROPIC_API_KEY when it is set. The adapter does not log in by itself: without either, every message fails with Authentication required.

To use your Claude subscription (Pro, Max) or Console account, log in once with the Claude Code CLI:

npm install -g @anthropic-ai/claude-code # or another install method of Claude Code
claude auth login # or run `claude` and type /login
claude auth status --text # check that you are logged in

The login is kept in ~/.claude/.credentials.json on Linux and in the Keychain on macOS, where the adapter finds it. When ANTHROPIC_API_KEY is also set, the key wins: turns are billed to the API, not to your subscription.

[agents.claude]
command = "claude-agent-acp"
mode = "default"
ModeBehaviour
defaultAsks before edits and commands
acceptEditsEdits without asking, commands ask
planPlans only, changes nothing
autoActs without asking; still asks about risky actions
bypassPermissionsNever asks
nvm

With Node from nvm, a global npm install lives under the active Node version. Switching versions hides the command until it is installed again. This applies to every npm-based agent on this page.

Codex​

OpenAI Codex, through the ACP adapter. @zed-industries/codex-acp is the old, deprecated name.

npm install -g @agentclientprotocol/codex-acp

Login: your ChatGPT account (Codex's usual login in ~/.codex/), or an API key in CODEX_API_KEY or OPENAI_API_KEY.

[agents.codex]
command = "codex-acp"
mode = "agent"
ModeBehaviour
read-onlyReads; asks before anything else
agentCodex's default ("auto review"): asks only for actions it flags as unsafe
agent-full-accessFull access, never asks

Gemini CLI​

Google's Gemini CLI. Needs Node.js 20 or newer.

npm install -g @google/gemini-cli

Login: GEMINI_API_KEY (Google AI Studio), or Vertex AI with GOOGLE_GENAI_USE_VERTEXAI=true and GOOGLE_API_KEY (or GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION). GEMINI_MODEL picks the model.

Google login for individuals

With a personal Google login ("Gemini Code Assist for individuals"), Gemini CLI 0.61 fails to open a session: This client is no longer supported for Gemini Code Assist for individuals… migrate to the Antigravity suite. The refusal comes from Google's service, not from Parolsh. Use an API key or Vertex AI instead.

[agents.gemini]
command = "gemini"
args = ["--acp"]
mode = "default"
ModeBehaviour
defaultAsks for approval
autoEditEdits are approved, commands still ask
yoloApproves everything
planRead-only

Older versions use --experimental-acp instead of --acp.

Qwen Code​

Qwen Code, a fork of Gemini CLI. Needs Node.js 22 or newer.

npm install -g @qwen-code/qwen-code

Qwen Code uses the provider and model configured in ~/.qwen/settings.json. The free Qwen login was discontinued in April 2026: it needs an API key. The simplest is any OpenAI-compatible endpoint, see Any OpenAI-compatible API. Anthropic (ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL, ANTHROPIC_MODEL) and Gemini (GEMINI_API_KEY, GEMINI_MODEL) keys work too.

[agents.qwen]
command = "qwen"
args = ["--acp"]
mode = "default"
ModeBehaviour
planAnalyzes only
defaultAsks before file edits and shell commands
auto-editEdits are approved, commands still ask
autoA classifier approves safe actions and blocks risky ones
yoloApproves everything

Qwen Code does not always start in default (it started in auto in our tests): set mode to be sure.

Qwen Code stops a turn when its model loops, with Tool-call loop protection stopped this turn. The conversation continues, see Troubleshooting.

Thinking off. Set "reasoning": false in the model.generationConfig of ~/.qwen/settings.json:

{
"model": {
"name": "Qwen/Qwen3.6-35B-A3B",
"generationConfig": { "reasoning": false }
}
}
  • It works with the provider set through environment variables (OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_API_KEY, or the same in ~/.qwen/.env): no modelProviders entry is needed.
  • For a Qwen-family model, Qwen Code then sends chat_template_kwargs: {enable_thinking: false} (vLLM, SGLang) or enable_thinking: false (DashScope).
  • Checked with Qwen Code 0.24.5 and Qwen/Qwen3.6-35B-A3B on vLLM: 29 reasoning chunks for a small question before, none after, same answer.
  • A top-level "enable_thinking": false in settings.json is ignored.

With a modelProviders entry, which Qwen Code recommends over environment variables, put "reasoning": false in that entry's generationConfig instead: the top-level model.generationConfig is ignored for provider models. Declaring "capabilities": { "reasoning": { "profile": "qwen-chat-template" } } on the entry also makes Qwen Code offer the reasoning_effort option, so #options reasoning_effort none switches thinking per conversation. These two come from Qwen Code's source and were not checked end to end.

Kilo Code​

Kilo Code's CLI. The npm package ships a native binary, no Node.js version requirement.

npm install -g @kilocode/cli
kilo auth login

Kilo uses your Kilo account (Kilo Gateway, many models), or a provider you configure in Kilo itself (kilo auth, ~/.config/kilo/kilo.json).

[agents.kilo]
command = "kilo"
args = ["acp"]

Kilo has no ACP session modes, but a mode option with its agents: ask and plan (read-only), code (its default), debug and orchestrator. mode = "ask" sets it through that option.

Permissions are configured in Kilo

None of Kilo's modes acts without asking. Kilo asks according to its own configuration: set "permission": "allow" in ~/.config/kilo/kilo.json to let it act without asking, or use its /auto-approve setting.

OpenCode​

OpenCode's CLI, a native binary.

curl -fsSL https://opencode.ai/install | bash
opencode auth login

OpenCode uses the providers you log in to with opencode auth login. Without one, it offers its own free models; its default may be one that was retired (Model ... has been deprecated), so name one with the model option. #options lists the models it offers.

[agents.opencode]
command = "opencode"
args = ["acp"]
mode = "build"
options = { model = "opencode/big-pickle" }

Like Kilo, OpenCode has no ACP session modes, but a mode option with its agents: build (its default) and plan (read-only). mode = "plan" sets it through that option. effort is only there for models that have it.

build acts without asking

With OpenCode's default configuration, build edits files and runs commands without asking. To be asked first, set it in ~/.config/opencode/opencode.json (or the project's opencode.json):

{
"permission": { "edit": "ask", "bash": "ask" }
}

Parolsh then shows each request, like any agent's.

The history tools work with OpenCode, which shows them as parolsh-history.search_history and so on.

OpenCode reports its context, cost and tokens, compacts with /compact, keeps its conversations for #resume, and copies one for a turn sent to the background.

Any OpenAI-compatible API​

To use an API token directly, with OpenAI, OpenRouter, Azure, a local vLLM or Ollama, or any endpoint that speaks the OpenAI API, run Qwen Code with three variables. It switches to that endpoint when all three are set.

npm install -g @qwen-code/qwen-code
export OPENAI_API_KEY=sk-... # in your shell, see "API keys"
[agents.openai]
command = "qwen"
args = ["--acp"]
env = { OPENAI_BASE_URL = "https://api.openai.com/v1", OPENAI_MODEL = "gpt-5" }
mode = "default"

Other endpoints only change env:

# OpenRouter
env = { OPENAI_BASE_URL = "https://openrouter.ai/api/v1", OPENAI_MODEL = "anthropic/claude-sonnet-4.5" }

# Local Ollama (use any non-empty OPENAI_API_KEY)
env = { OPENAI_BASE_URL = "http://localhost:11434/v1", OPENAI_MODEL = "qwen3-coder" }

The modes are Qwen Code's, see above.

Goose​

Block's open-source agent, with many providers.

curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | CONFIGURE=false bash

It reads its provider from ~/.config/goose/config.yaml (written by goose configure) or from environment variables. For an OpenAI-compatible endpoint:

[agents.goose]
command = "goose"
args = ["acp"]
env = { GOOSE_PROVIDER = "openai", GOOSE_MODEL = "gpt-5", OPENAI_BASE_URL = "https://api.openai.com/v1" }
mode = "approve"
ModeBehaviour
approveAsks before every tool call
smart_approveAsks only for sensitive tool calls
chatChat only: no tools at all
autoActs without asking (Goose's default)
The desktop app is not the CLI

The Goose desktop package puts the app itself on PATH as goose: with it, command = "goose" opens a window instead of starting the agent. Point command to the CLI it ships, on Linux /usr/lib/goose/resources/bin/goose. It reads the same ~/.config/goose/config.yaml as the app.

Goose calls the history tools from code it runs, so Parolsh shows them as execute typescript, not by their names. Its permission choices arrive as their ids (allow_once, reject_always, ...).

More agents​

Other agents that speak ACP. Configure them the same way; #agent list shows the modes they offer once running.

AgentACP command
GitHub Copilot CLIcopilot --acp
Cursor CLIcursor-agent acp
Augment (Auggie)auggie --acp
Mistral Vibevibe-acp
Kimi CLIkimi acp
Clinecline --acp

The full list is at agentclientprotocol.com.

When an agent cannot start​

cannot start claude-agent-acp: not found on PATH means Parolsh does not see the agent's program. npm installs agents in a directory only your shell adds to PATH (with nvm, ~/.nvm/versions/node/<version>/bin), so it happens when Parolsh was not started from a terminal. shell_env (see Shell environment) imports your shell's environment for that case; shell_env = "always" forces it.

Moved sections​

Using an agent has a page of its own. The sections that were here: