# More agents

Antigravity, Gemini CLI, OpenCode, Pi, DeepSeek, a second account, GPT / DeepSeek APIs.

Web page: https://gerdr.dev/docs/agents

Every agent in Gerdr is an engine plus its own name, prompt, skills / MCP and new-session defaults. There are four engines: **Claude Code**, **Codex**, **Gerdr Agent** (calls a model API itself) and **external ACP agents** (any command-line agent that speaks ACP). Add them all in `Settings → Agent → Roles`; once added, they're on the new-session screen.

## Antigravity, Gemini CLI, OpenCode, Pi, DeepSeek

1. Install the agent in a terminal first and sign in the way it asks (Pi and DeepSeek Harness run through npx: nothing to install).
2. Open `Settings → Agent → Roles`, click `New`, and pick `External ACP agent` as the engine.
3. Click one under `Common` below the command: it fills the command in. Give it a name.
4. A key it needs goes under Environment, one `KEY=VALUE` per line. Gerdr then starts it once to read its modes and models.
5. Save. Pick it when starting a session.

![A new external ACP agent](https://fsu.creght.com/site/2117042939526909952/1795494028604__gerdr_doc_acp_en.jpg)

| Agent | Command | Notes |
|---|---|---|
| Antigravity | `agy acp` | Install agy and sign in first |
| Gemini CLI | `gemini --acp` | Install gemini and sign in first |
| OpenCode | `opencode acp` | Another config: env OPENCODE_CONFIG |
| Pi | `npx -y pi-acp` |  |
| DeepSeek Harness | `npx -y dsh-acp` | Needs env DEEPSEEK_API_KEY |

> Not on the list? If it speaks ACP (the Agent Client Protocol), put its command in and it works.

## GPT, DeepSeek, Gemini or Claude APIs directly

No command-line agent, just an API key? Use the built-in **Gerdr Agent**: at the bottom of `Settings → Agent → Roles`, add a provider under the engines with its endpoint and key, fetch its model list and pick the models. OpenAI-compatible APIs (DeepSeek, gateways), Anthropic and Google Gemini all work. A `Gerdr Agent` then shows on the new-session screen.

It does interjecting, rewind, approvals, sub-agents, background commands, skills and MCP, and remembers what you corrected. The key is kept in Gerdr's own secrets file, out of the agents' reach.

## A second Claude / Codex account

1. `New` agent on the Claude Code engine, named e.g. "Claude work".
2. Open `Advanced` and set `CLAUDE_CONFIG_DIR=~/.claude-work` (Codex: `CODEX_HOME`); for an API key, `ANTHROPIC_API_KEY=…`.
3. A subscription signs in once in a terminal: `CLAUDE_CONFIG_DIR=~/.claude-work claude`, then `/login`.

## Give an agent a role

One engine can back several agents with different jobs: say a "Reviewer" whose prompt reads "Read the code, don't edit files, list problems by severity", with only the review skills and read-only mode by default. Then just say "have the reviewer look at it".

## Or have an agent add it

In any session, say "add Antigravity for me" or "add a read-only reviewer": it changes the settings with Gerdr's command line. The commands it uses:

```
gerdr config add agents '{"id":"agy","name":"Antigravity","command":["agy","acp"]}'
gerdr config add agents '{"id":"deepseek","name":"DeepSeek","command":["npx","-y","dsh-acp"],"env":{"DEEPSEEK_API_KEY":"sk-…"}}'
gerdr agent create '{"id":"reviewer","name":"Reviewer","base":"claude","prompt":"Review only, don't edit.","defaults":{"mode":"plan"}}'
```
