Manual
Everything you need to use agent, from installing it to connecting more tools.
Install
# macOS and Linux
curl -fsSL https://agent.cebecifaruk.com/install.sh | sh
# Windows PowerShell
irm https://agent.cebecifaruk.com/install.ps1 | iex
The scripts install the latest binary, verify its checksum, and add it to your PATH. Run them again to update, or run
agent update, which replaces the binary that runs when the website has a newer version. On Windows, the terminal
tool needs Git for Windows.
$ agent update
$ agent update --skip-version-check
$ agent update --force
agent update prints where the binary is, with its version and checksum, and those of the latest binary. It does
nothing when the checksums match, and only tells you when the latest version is older. --skip-version-check installs
the latest binary whenever its checksum differs, and --force (-f) installs it in any case.
agent also updates itself: when it starts without a subcommand, it installs a newer version in the background, without
telling you, and the next start runs it. The session that started keeps its version. Set autoUpdate: false in your
config to turn it off.
$ agent info
$ agent doctor
agent info shows the binary, the database, the config file, the agent files, and the environment that agent uses,
which helps in bug reports. agent doctor checks them and tells you how to fix what it finds, such as a binary whose
directory is not on your PATH, a database that others can read, a config with mistakes, or tmux options that keys
need. Neither logs in or reaches the network.
Log in
$ agent auth login
Pick a provider and a login method from the list. You can log in to several providers. The first run of agent asks you
to log in by itself when no provider is logged in.
| Provider | How to log in |
|---|---|
| Anthropic, Google, DeepSeek, Kimi, xAI | API key |
| OpenRouter | API key, or your OpenRouter account in the browser |
| OpenAI | Your ChatGPT plan in the browser |
| Claude | Your Claude plan through Claude Code |
| Ollama | No login; start the server with ollama serve |
| LM Studio | No login; start the server with lms server start |
agent auth lists your logins, and agent auth logout removes one. Ollama and LM Studio models are listed while their
server runs. Set LM_API_TOKEN when the LM Studio server requires authentication. Agent downloads the version of Claude
Code that it is tested with when you first use it. Set CLAUDE_EXECUTABLE=claude to use the Claude Code that you
installed instead, such as for a model that the tested version does not list yet.
Several accounts
Log in to a provider that is logged in already, and agent asks for the name of the other account, such as work:
$ agent auth login --provider openai
$ agent -m work@openai/gpt-5.4:high
An account name belongs to one provider. The first login of a provider is its default account, whose models have no name
before the provider. Scripts, which cannot be asked, name the account instead, as in
agent auth login --provider work@openai, which also logs in to that account again. agent auth logout lists the
accounts to remove one, and agent auth logout --provider work@openai removes that one. Without a terminal,
agent auth logout --provider openai removes the default account. Every Claude Code account keeps its login in a
directory of its own, next to the database. Ollama and LM Studio have no accounts.
Choose a model
Models are named provider/model:variant, or account@provider/model:variant for a named account, where the variant is
the thinking level, such as low or high.
$ agent models # every model you can use
$ agent -m anthropic/claude-opus-5-5:high
Without -m, agent uses the model of the starting mode, or else the model of your config, or else the
model you used last. During a session, /model switches models, also to another provider, /account moves the model to
another account of its provider, such as /account work, and Ctrl+T cycles the thinking level. Sessions do
not save the account, so a continued session uses the account of the model you used last when it is of the same
provider, and the default account otherwise. /fast turns fast mode on or off, which answers faster at a higher price.
Claude Opus 5.5, Opus 5, and Opus 4.8 have it with Anthropic, and the OpenAI models that your ChatGPT plan lists with
it. The model in the bar is followed by fast while it is on, and agent remembers it.
Chat
Run agent in your project directory, type a message, and press Enter.
$ cd ~/projects/my-app
$ agent
In Work mode, the model reads and edits files, runs commands, and shows each step as it works. Messages you send while
it works are queued, and join its work together as soon as its running tool calls finish, or once it finishes when it is
writing its answer. The bar below the input shows the model, the uncommitted changes of your repository, and the
progress of the plan; the line above it shows the tasks that run in the background, the context used, the output speed
of the last response, and the cost. The context is what the last response measured, with the share of the context window
of the model, and a + once a later response, such as a stopped one, grew it without measuring it. A tool result that
would not fit into the room left in the context window is cut to its start and its end, so that it cannot make the rest
of the conversation fail. Your messages are shown as Markdown, as the answers are.
| Key | Action |
|---|---|
| Enter | Send |
| Shift+Enter, Alt+Enter, Ctrl+J | New line |
| Esc | Close the output of a command, or stop the reply |
| ↑ ↓ | Earlier messages, or scroll the output of a command |
| PgUp PgDn | Scroll the output of a command by a page |
| Ctrl+V | Paste an image, or drag an image file in |
| Ctrl+T | Next thinking level |
| Tab | Next mode |
| Ctrl+C | Stop the reply, clear the input, or exit when pressed twice |
| Ctrl+D | Stop the reply, or exit when pressed twice on an empty input |
Undo prompt edits with Cmd+Z, Ctrl+Z, or Ctrl+; redo them with Cmd+Shift+Z,
Ctrl+Shift+Z, or Alt+. Command shortcuts require a terminal that forwards them using the kitty
keyboard protocol, and Ctrl+Shift+Z requires extended keyboard reporting. Use Alt+_ for redo when those
combinations are unavailable. New edits discard redo steps, and sending a prompt clears its editing history. These
shortcuts edit the prompt input; /undo takes back a conversation turn.
Some terminals send Shift+Enter as Enter; Ctrl+J adds a line in every terminal, and
agent doctor tells which tmux options Shift+Enter needs.
The mode, shown at the start of the bar below the input, is a preset of the tools that the model may use, a system
prompt, and optionally a model. A new session starts in Chat; Tab or /mode switches it and replaces what
the mode sets. Continued sessions start in the same mode as new ones. You can change these modes and add your own in
your config or in agent files.
| Mode | What the model may do |
|---|---|
| Chat | Talk and calculate; no files, commands, or web |
| Plan | Read and search files, and propose a plan; no changes and no commands |
| Work | Use every tool: edit files, run commands, fetch pages, and use MCP servers |
/enable and /disable turn a tool, an extension, or an MCP server on or off, and /system replaces the system
prompt, each without changing the other. When the tools, the system prompt, and the model match no mode, the bar shows
Custom; when they match one, it shows that mode. Only what a mode sets is compared, so a mode without a model matches
every model. For example, /enable mcp:exa in Chat gives the model the tools of the exa server and shows Custom.
Type / to see the commands. Commands stay out of the conversation: what they show, such as a list or an error, opens
in place of the input and the bars until you press Esc, and takes the keys meanwhile, so that ↑
↓ scroll it. Commands whose effect the bars already show, such as /model <model> or /enable, show
nothing. Only /undo, /compact, and /clear mark the conversation, with a divider. While a command waits for the
reply in progress, the arrow at the end of the bar spins.
| Command | Does |
|---|---|
/model, /effort |
Switch the model or the thinking level |
/account, /fast |
Switch the account, or turn fast mode on or off |
/mode |
List the modes, or switch to one |
/continue |
Continue a stopped or cut-off reply |
/undo |
Take back the last queued message, the last turn, or a compaction |
/compact |
Replace the conversation with a summary, or /compact <focus> |
/copy |
Copy the last answer, or with /copy 3 the third message from the end |
/export |
Save the conversation as Markdown, or /export json, to a given path |
/tools, /enable, /disable |
List tools, or turn a tool, extension, or MCP server on or off |
/system |
Show the system prompt, replace it with /system <text>, or --clear |
/title |
Show the title of the conversation, or rename it with /title <text> |
/cd, /pwd |
Change or show the working directory |
/usage |
Show tokens, cost, and speed |
/goals |
Show the goals of the conversation with their statuses |
/mcp, /skills |
Show the MCP servers and their tools, or the skills |
/clear |
Start a new conversation, and tell how to continue the last one |
/help |
Show every command and key |
/exit |
Exit |
Continue later
Every conversation is saved. When you exit, agent prints the command that continues it.
$ agent --continue # continue the newest conversation of this directory; -c for short
$ agent session # list the recent conversations of this directory, with their titles
$ agent session --all # list the conversations of every directory; -a for short
$ agent session 3f2a # continue one; a short ID prefix is enough
$ agent session 3f2a --title "Release notes"
$ agent session 3f2a --delete
A conversation belongs to the directory that its tools last worked in, so agent session lists the ones of the current
directory, newest first, with when they started, in UTC, and --continue picks the newest of them. It continues with
the model of its last prompt, so it takes no -m or -s. With the first prompt, the model of the conversation writes a
short title for it in a request of its own, with the same account and thinking level; until the title arrives, the list
shows the first prompt. --title and /title rename a conversation, and titles: false in your config
turns the titles off. The divider of /clear tells the command that continues the conversation it replaces. /compact
asks the model for a summary of the conversation, which the model sees from then on in place of it, so that a long
conversation fits into its context window again; the transcript and the exports keep everything, and /undo right after
it takes it back. When the model answers, a faint row such as ✓ 42.0s · 80 tok/s · $0.03 tells how long the turn took,
how fast the model wrote, and what it cost, and while a failed response waits to be retried, the row below the
transcript counts down to the retry.
What the model can do
| Tools | What they do |
|---|---|
| Files | Read, search, edit, patch, move, and delete files in the project, and view images |
| Terminal | Run commands with Bash, also long-running ones in the background |
| TUI apps | Run apps in emulated terminals of any size, read their screens, send keys and mice |
| Web | Fetch pages and download files |
| Browser | Open, read, click, type in, and screenshot pages in your installed Chrome or Edge |
| Read, search, and see the pages of PDF files | |
| JavaScript | Run calculations in a sandbox without file or network access |
| Goals | Plan the work and track its progress |
| Tasks | Hand work to tasks that run in parallel, on any listed model |
| Skills and MCP | Load your skills and use the tools of MCP servers |
The browser tools use the Chrome, Edge, Chromium, or Brave that is installed, and never download one. Agent starts it
without a window on the first browser call, with a fresh profile that it deletes when it exits, so no logins carry over.
Set BROWSER_EXECUTABLE to the path of another browser, or to an empty value to turn the browser tools off, and
BROWSER_HEADLESS=0 to show its window. Downloads are saved to downloads/ in the project. agent doctor tells which
browser the tools use.
A task is a conversation that the model starts to delegate work, in the foreground or in the background. It has the
tools that the conversation uses at that moment, without the ones the model disables for it, and it can start tasks of
its own, three levels deep. It uses the account, model, and variant of the conversation that starts it, except the ones
that the model picks for it. Esc stops the tasks too, /undo forgets the ones that the undone turn started, and
/clear stops them. Tasks are kept in their session but not shown: /export json and agent run --format events
include them, and /usage breaks the cost down by task, with the context of every task.
Agent does not ask before acting. In Work mode, it can change and delete files and run any command with your permissions. Work in a git repository, commit before big tasks, and review changes with
git diff. Stay in Chat or Plan mode while you only talk or plan.
Project instructions
Put the rules of your project in AGENTS.md in its root, such as how to test it and what to avoid. Agent reads it when
it starts. -s "..." adds a system prompt of your own after it.
Skills are folders with a SKILL.md that the model loads when a task needs them. Put them in .agents/skills/ for
one project or ~/.agents/skills/ for all of them:
---
name: release-notes
description: Use when writing release notes from the git history.
---
Run `git log --oneline <last-tag>..HEAD` and group the commits by area.
MCP servers
MCP servers give the model more tools, such as a browser or a database. Run agent mcp add and pick a server, such as
GitHub, Notion, or Google Calendar, from the list; type to filter it. Agent saves the server, opens its login page in
the browser when it has one, and checks that it works. Choose Custom server for one that is not listed.
$ agent mcp add # pick a server from the list
$ agent mcp search calendar # find a server, then add it by its name
$ agent mcp add google-calendar
Servers of your own take a command or a URL:
$ agent mcp add playwright --command 'npx -y @playwright/mcp'
$ agent mcp add search --url https://mcp.tavily.com/mcp
$ agent mcp auth search # log in through the browser
$ agent mcp list # check every server
Agent also reads .mcp.json in your project, in the format other tools use. A session starts without waiting for its
MCP servers: it connects to them in the background, and messages that you send meanwhile wait until it is done.
agent mcp serve works the other way around: it offers the bundled tools to other MCP clients, such as editors or other
agents, over standard input and output. With --agent, it offers agent itself as one tool that takes a task.
{
"mcpServers": {
"agent": { "command": "agent", "args": ["mcp", "serve", "--agent"] }
}
}
Config
Your config is ~/.config/agent/agent.yml, or %APPDATA%\agent\agent.yml on Windows; agent.yaml works too. Without
one, agent uses its built-in config. Yours is layered on it: what you leave out is inherited, tools are merged entry
by entry, and modes are merged by name, so you only write what you change. Set a mode to null to remove it. agent
reads the config when it starts, and a mistake only gives a warning and leaves out what it affects.
mode: Plan # mode of new sessions; the first mode without it
model: work@anthropic/claude-opus-5-5:high # model of new sessions whose mode sets none
prompt: Answer briefly. # system prompt of every mode, before the one of the mode
autoUpdate: false # installs newer versions in the background unless false
titles: false # the model names new sessions from their first prompt unless false
tools: # tools of every mode, unless the mode decides them
web_fetch: false
modes: # in the order Tab switches between them
Chat: null # removes Chat
Work:
model: openai/gpt-5.4:high # switches to this model
Review: # added after the built-in modes
description: Reads the change and comments on it
color: cyan # red, green, yellow, blue, magenta, cyan, white, or gray
tools:
"*": false
fs_*: true
fs_write: false
prompt: Review the uncommitted changes.
A tool is on or off by its own name, or else by the longest name ending with * that it starts with, so "*" covers
every tool. The tools of a mode come first, then those of the config, and a tool that neither names is off. A mode that
leaves out tools, prompt, or model keeps the ones the session has. The built-in config starts new sessions in
Chat, turns every tool, auto update, and titles on, and defines the three modes above.
Agent files
You can also write a mode in a Markdown file of its own in ~/.config/agent/agents/, or %APPDATA%\agent\agents\ on
Windows. The file name is the name of the mode, its front matter takes the fields of a mode, and the text below it is
the prompt of the mode. PCB Design.md defines the mode PCB Design:
---
description: Uses every tool of Work mode, with the KiCad MCP tools on
color: magenta
model: work@claude/claude-opus-5-5:medium
tools:
"*": true
"kicad_*": true
---
Design the board with the KiCad tools, and check it against the design rules before you finish.
Agent files are layered on the built-in config one by one, in the order of their file names, and your agent.yml is
layered on them, so it takes precedence: it can change or add any field of a mode from an agent file, or remove the mode
with null. An agent file named after a built-in mode, such as Work.md, changes that mode. Modes from agent files
follow the built-in modes, in the order of their file names. An agent file with a mistake is left out with a warning,
which agent doctor shows too.
Scripts
agent run answers one prompt and exits. The answer goes to standard output, and the steps to standard error. Text
piped to it is added to the prompt.
$ agent run "Summarize the changes in this branch" > summary.md
$ git diff | agent run "Review this"
$ agent session 3f2a -p "Now add tests"
--format events prints every step as a JSON object, one per line, for other programs to follow:
$ agent run --format events "Fix the failing test" | jq -r 'select(.type == "tool_call") | .name'
agent serve serves your conversations over HTTP for custom frontends: they create, read, list, and remove sessions,
send prompts and commands, and follow each session live with Server-Sent Events. Lists can be limited to a directory
with ?directory=, and give the title and the directory of every session, which PATCH renames with title. It
listens on 127.0.0.1:4280, and only answers web pages that you allow:
$ agent serve --allow-origin http://localhost:5173
Files
Conversations, logins, and saved MCP servers are kept in ~/.local/share/agent/agent.db, or
%LOCALAPPDATA%\agent\agent.db on Windows, and your config in ~/.config/agent/agent.yml, with your agent
files in agents/ next to it, or in %APPDATA%\agent\ on Windows. The downloaded Claude Code is kept in
~/.cache/agent/claude, or %LOCALAPPDATA%\agent\cache\claude on Windows. Set <PROVIDER>_BASE_URL, such as
ANTHROPIC_BASE_URL, to use another endpoint of a provider, such as OLLAMA_BASE_URL=http://gpu-box:11434 for an
Ollama server on another machine. Run agent --help for every option.