CLI
Command reference
Updated 2026-09-25
Every command accepts --json and --help. <id> is an agent id (shown by ghosty agents ls).
Session
Agents
set changes only what you pass. Prompt and model apply from the next turn.
Configure an agent
Files, skills and MCP live in the agent's machine. If its engine has no machine of its own, the CLI tells you so; name, model and prompt can still be changed with agents set.
Talk to an agent
try is for testing configuration; chat uses the agent's real conversations, the same ones you see in the dashboard and the app.
Your account
Global options
An agent token (gat_…, generated on the agent's page) reaches only that agent: it works for agents get/set/restart, files, skills, mcp and try, but not for listing agents or chat.