Skip to main content

crewship agent

Create, configure, and inspect the AI agents that do the work inside a crew. Reach for these commands to provision a new agent, tweak its adapter or model, browse its runs and chats, or peek inside its container (files, logs, git history, peer inbox).
crewship agent <subcommand> [flags]

Subcommands

CommandDescription
listList all agents in the workspace
getShow agent details
createCreate a new agent
updateUpdate an agent
deleteDelete an agent
runsList runs for an agent
chatsList recent chats for an agent (alias: sessions)
stopStop a running agent
logsShow agent container logs
debugShow agent debug info (container state, env, crewshipd status)
skillsList skills assigned to an agent
credentialsList credentials assigned to an agent
mcpShow or set MCP server configuration for an agent
filesList files in the agent’s working directory, or download a single file
file-writeWrite a file into the agent’s working directory
inboxShow peer messages received by the agent
git-logShow git log inside the agent’s container

crewship agent list

List all agents in the workspace.
crewship agent list
crewship agent list --crew backend-team
FlagTypeDefaultDescription
--crewstringFilter by crew slug or ID.
Output columns: SLUG, ROLE, CREW, STATUS, ADAPTER, MEMORY

crewship agent get

Show detailed information about an agent.
crewship agent get <slug-or-id>
Output fields: Name, Slug, ID, Role, Role Title, Crew, Status, CLI Adapter, Tool Profile, Memory, Timeout, Created, Skills count, Credentials count.

crewship agent create

Create a new agent.
crewship agent create --name "Viktor" --crew backend-team --role LEAD
FlagTypeDefaultDescription
--namestring(required)Agent name.
--slugstring(auto from name)Agent slug.
--crewstringCrew slug or ID.
--rolestringAGENTAgent role: AGENT or LEAD.
--role-titlestringHuman-readable role title.
--cli-adapterstringCLAUDE_CODECLI adapter: CLAUDE_CODE, CODEX_CLI, GEMINI_CLI, OPENCODE, CURSOR_CLI, FACTORY_DROID.
--system-promptstringSystem prompt text or @file.txt to read from file.
--tool-profilestringCODINGTool profile: MINIMAL, CODING, FULL.
--llm-providerstringLLM provider: ANTHROPIC, OPENAI, GOOGLE.
--llm-modelstringLLM model (e.g., claude-haiku-4-5).
--memoryboolfalseEnable memory.
--lead-modestringLead mode: active or passive.
--timeoutint0Timeout in seconds.
--avatar-seedstring(agent name)Avatar seed for avatar generation.
--avatar-stylestringAvatar style: bottts-neutral, adventurer, fun-emoji, pixel-art, micah, notionists, thumbs, lorelei, big-smile, avataaars.
Use @file.txt syntax with --system-prompt to load the prompt from a file:
crewship agent create --name Viktor --system-prompt @prompts/backend-lead.md

crewship agent update

Update an existing agent. Only changed flags are sent.
crewship agent update <slug-or-id> --role LEAD --memory
FlagTypeDefaultDescription
--namestringAgent name.
--rolestringAgent role.
--role-titlestringHuman-readable role title.
--cli-adapterstringCLI adapter.
--system-promptstringSystem prompt text or @file.txt.
--tool-profilestringTool profile.
--llm-providerstringLLM provider: ANTHROPIC, OPENAI, GOOGLE.
--llm-modelstringLLM model.
--memoryboolfalseEnable memory.
--lead-modestringLead mode.
--timeoutint0Timeout in seconds.
--avatar-seedstringAvatar seed.
--avatar-stylestringAvatar style.

crewship agent delete

Delete an agent. Prompts for confirmation unless --yes is passed.
crewship agent delete <slug-or-id>
crewship agent delete viktor --yes
FlagShortTypeDefaultDescription
--yes-yboolfalseSkip confirmation prompt.
Deletion is permanent. --yes skips the prompt — reserve it for scripts where you already know the slug is correct.

crewship agent runs

List runs for an agent.
crewship agent runs <slug-or-id>
Output columns: ID, STATUS, TRIGGER, CREATED, FINISHED

crewship agent stop

Stop a running agent.
crewship agent stop <slug-or-id>

crewship agent logs

Show agent container logs.
crewship agent logs <slug-or-id>
crewship agent logs viktor --tail 50
FlagTypeDefaultDescription
--tailint100Number of log lines to show.

crewship agent debug

Show agent debug info including container state, environment variables, and crewshipd status. Output is always JSON.
crewship agent debug <slug-or-id>

crewship agent skills

List skills assigned to an agent.
crewship agent skills <slug-or-id>
Output columns: SKILL ID, NAME, CATEGORY, ENABLED

crewship agent credentials

List credentials assigned to an agent.
crewship agent credentials <slug-or-id>
Output columns: ID, NAME, PROVIDER, TYPE, ENV VAR

crewship agent mcp

Show or set MCP server configuration for an agent.
# Show agent-specific config
crewship agent mcp <agent-slug>

# Show effective (merged crew + agent) config
crewship agent mcp <agent-slug> --resolved

# Set from inline JSON
crewship agent mcp <agent-slug> --set '{"mcpServers":{...}}'

# Set from file
crewship agent mcp <agent-slug> --set-file agent-mcp.json
FlagTypeDefaultDescription
--setstringSet MCP config from JSON string. Pass empty string to clear.
--set-filestringSet MCP config from file path.
--resolvedboolfalseShow effective merged config (crew + agent). Agent overrides crew.
The JSON must contain a "mcpServers" object at the top level. --set and --set-file are mutually exclusive. --resolved cannot be combined with set operations.

crewship agent chats

List the agent’s recent chat sessions — id, title, status, message count, and start/end timestamps. Mirrors the SessionsSidebar panel in the web UI. Alias: sessions.
crewship agent chats viktor
crewship agent chats viktor --format json | jq '.[] | select(.status=="ACTIVE")'
Output columns: CHAT ID, TITLE, STATUS, MSGS, STARTED, ENDED. Backed by GET /api/v1/agents/{id}/chats.

crewship agent files

List the agent’s /output/<slug>/ working-directory artefacts, or download a single file. Same view the web Files panel renders.
crewship agent files viktor
crewship agent files viktor --download README.md
crewship agent files viktor --download report.txt --out /tmp/saved.txt
crewship agent files viktor --filter '.[] | .name'      # piped through the jq binary
FlagTypeDefaultDescription
--download <name>stringDownload this file instead of listing.
--out <path>stringbasename of fileOutput path for --download. Pass - to stream the file body to stdout.
--filter <expr>stringjq filter applied before rendering (when not downloading). Piped through the external jq binary on PATH; if jq is absent the raw output is shown.
Downloads stream into a tempfile next to the target and rename(2) only on success — Ctrl-C or transport errors mid-copy do not clobber an existing good file with a truncated one. Backed by GET /api/v1/agents/{id}/files and GET /api/v1/agents/{id}/files/download?path=….

crewship agent file-write

Upload bytes to the agent’s working directory. Source comes from --from (local file), --content (inline string), or stdin when neither flag is given. --content and --from are mutually exclusive.
echo "draft" | crewship agent file-write viktor notes/draft.md
crewship agent file-write viktor config/x.toml --from ./local.toml
crewship agent file-write viktor README.md --content "# hi"
FlagTypeDefaultDescription
--contentstringInline content string.
--fromstringLocal file path to upload.
Backed by PUT /api/v1/agents/{id}/files/save?path=<path>. The handler reads r.Body raw — no JSON envelope — so binary uploads round-trip byte-for-byte.

crewship agent inbox

List peer-to-peer messages addressed to this agent. Useful for debugging cross-agent collaboration: did the message arrive? was it read?
crewship agent inbox viktor
crewship agent inbox viktor --filter '.[] | .from'
Output columns: WHEN, FROM (truncated to 15 chars), MESSAGE (truncated to 60 chars, newlines flattened). Backed by GET /api/v1/agents/{id}/inbox.

crewship agent git-log

Show the git commit log from inside the agent’s container — useful for inspecting what code-writing agents have committed locally before any push.
crewship agent git-log viktor
crewship agent git-log viktor --filter '.[] | .message'
crewship agent git-log viktor --format json
Default rendering prints short hash + relative date + truncated subject line. The handler tolerates both [...] and {"commits":[...]} shapes from the server side. Backed by GET /api/v1/agents/{id}/git-log.