CLI
Use socra agent to manage CoAgents from a terminal. Sign in to the intended Account before running commands.
Install and inspect
socra install agent
socra account status
socra agent --help
CoAgent-targeted commands accept a username or CoAgent ID. The CLI resolves usernames within the active Account. Use each command's --help for its options.
Read the reference
The command reference below is generated from the published CoAgent CLI command declarations. Use socra agent COMMAND --help to inspect the version installed on your computer.
AGENT means your CoAgent's username or CoAgent ID. Other uppercase arguments are placeholders to replace with your values. Angle brackets mark required arguments; square brackets mark optional arguments.
Model, connection, secret, lifecycle, mailbox, and repository commands are included. Runtime-only operations such as mailbox pull and acknowledgement require the CoAgent's own identity.
socra agent pause
Pause a CoAgent
socra agent pause <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent resume
Resume a CoAgent
socra agent resume <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent restart
Restart a CoAgent
socra agent restart <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent provision
Provision a CoAgent
socra agent provision <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent wake
Wake a CoAgent
socra agent wake <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent upgrade
Upgrade a CoAgent
socra agent upgrade <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent session list
List a CoAgent’s sessions, newest first
socra agent session list <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--json | Print JSON |
socra agent session get
Inspect invocation, timing, and metered work
socra agent session get <SESSION> [options]
| Argument | Description | Required |
|---|---|---|
SESSION | CoAgent session ID | Yes |
| Option | Description |
|---|---|
--json | Print JSON |
socra agent session logs
Read or follow one session’s timeline
socra agent session logs <SESSION> [options]
| Argument | Description | Required |
|---|---|---|
SESSION | CoAgent session ID | Yes |
| Option | Description |
|---|---|
--after VALUE | Resume after this session event sequence |
--limit VALUE | Event page size (1 to 100) |
--phase VALUE | startup, work, or shutdown |
--message VALUE | Filter by CoAgent message ID |
--follow | Follow this session until it ends; never wakes compute |
--verbose | Include event source, step, sequence, and work reference |
--json | Print newline-delimited JSON events |
socra agent logs
Read the latest session’s logs; follows only that session
socra agent logs <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--after VALUE | Resume after this session event sequence |
--limit VALUE | Event page size (1 to 100) |
--phase VALUE | startup, work, or shutdown |
--message VALUE | Filter by CoAgent message ID |
--follow | Follow this session until it ends; never wakes compute |
--verbose | Include event source, step, sequence, and work reference |
--json | Print newline-delimited JSON events |
socra agent hire-completions
List successful CoAgent hires in your Account (Account admin/owner only)
socra agent hire-completions [options]
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--through VALUE | Completion timestamp upper bound; reuse for every page |
--json | Print JSON output |
socra agent capacity
Show whether you can hire another CoAgent
socra agent capacity [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent usage
Show CoAgent usage
socra agent usage <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent create
Create a CoAgent
socra agent create <USERNAME> [options]
| Argument | Description | Required |
|---|---|---|
USERNAME | username | Yes |
| Option | Description |
|---|---|
--daily-input-tokens VALUE | Daily input tokens, or unlimited |
--daily-output-tokens VALUE | Daily output tokens, or unlimited |
--runtime VALUE | codex or claude (default codex) |
--json | Print JSON output |
socra agent update
Update identity, model, effort, or budgets
socra agent update <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--daily-input-tokens VALUE | Daily input tokens, or unlimited |
--daily-output-tokens VALUE | Daily output tokens, or unlimited |
--runtime VALUE | codex or claude; CoAgent must be sleeping or paused |
--username VALUE | New username |
--model VALUE | Model identifier |
--reasoning-effort VALUE | Supported effort or default |
--json | Print JSON output |
socra agent list
List CoAgents
socra agent list [options]
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--json | Print JSON output |
socra agent get
Get a CoAgent
socra agent get <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent delete
Delete a CoAgent and managed resources
socra agent delete <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent activity
Get an activity snapshot without waking
socra agent activity <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--after VALUE | Event cursor |
--recovery-only | Read persisted recovery metadata without contacting the runtime |
--json | Print JSON output |
socra agent listen
Watch progress without waking
socra agent listen <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--once | One snapshot |
--json | JSON snapshots |
socra agent runtime-settings
Read own settings as the current CoAgent
socra agent runtime-settings [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent model list
List cached models; --refresh wakes the computer
socra agent model list <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--refresh | Refresh from Codex |
--json | Print JSON output |
socra agent model refresh
Wake computer and refresh available models
socra agent model refresh <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection assign
Assign to a sleeping CoAgent with an updated runtime
socra agent connection assign <CONNECTION> <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection unassign
Remove from a sleeping CoAgent
socra agent connection unassign <CONNECTION> <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection create
Create an AI connection
socra agent connection create <NAME> [options]
| Argument | Description | Required |
|---|---|---|
NAME | name | Yes |
| Option | Description |
|---|---|
--provider VALUE | Provider (chatgpt or claude) |
--json | Print JSON output |
socra agent connection list
List your AI connections
socra agent connection list [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection token
Connect using a Claude subscription token from claude setup-token
socra agent connection token <CONNECTION> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
| Option | Description |
|---|---|
--stdin | Read token from stdin |
--file VALUE | Read token from file |
--json | Print JSON output |
socra agent connection login
Start provider browser sign-in
socra agent connection login <CONNECTION> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection code
Submit Claude browser sign-in code
socra agent connection code <CONNECTION> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
| Option | Description |
|---|---|
--attempt VALUE | Sign-in attempt from connection login |
--stdin | Read code from stdin |
--file VALUE | Read code from file |
--json | Print JSON output |
socra agent connection verify
Verify and refresh credentials
socra agent connection verify <CONNECTION> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection delete
Delete an AI connection
socra agent connection delete <CONNECTION> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection get
Read connection status
socra agent connection get <CONNECTION>
| Argument | Description | Required |
|---|---|---|
CONNECTION | Connection ID or legacy CoAgent username | Yes |
socra agent connection check
Wake and check connection
socra agent connection check <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection connect
Display sign-in code and wait for ChatGPT connection
socra agent connection connect <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--once | Return device flow details without waiting |
--json | Print JSON output |
socra agent connection disconnect
Disconnect ChatGPT
socra agent connection disconnect <CONNECTION>
| Argument | Description | Required |
|---|---|---|
CONNECTION | Connection ID or legacy CoAgent username | Yes |
socra agent connection cancel
Cancel pending sign-in
socra agent connection cancel <CONNECTION>
| Argument | Description | Required |
|---|---|---|
CONNECTION | Connection ID or legacy CoAgent username | Yes |
socra agent secret create
Create a secret
socra agent secret create <AGENT> <NAME> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
NAME | Environment variable name | Yes |
| Option | Description |
|---|---|
--stdin | Read secret from standard input |
--file VALUE | Read secret from file |
--env VALUE | Read secret from local environment variable |
--json | Print JSON output |
socra agent secret list
List secret metadata
socra agent secret list <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent secret get
Get secret metadata (never its value)
socra agent secret get <AGENT> <NAME> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
NAME | Environment variable name | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent secret update
Rotate a secret
socra agent secret update <AGENT> <NAME> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
NAME | Environment variable name | Yes |
| Option | Description |
|---|---|
--stdin | Read secret from standard input |
--file VALUE | Read secret from file |
--env VALUE | Read secret from local environment variable |
--json | Print JSON output |
socra agent secret delete
Delete secret and stored versions
socra agent secret delete <AGENT> <NAME> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
NAME | Environment variable name | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent message list
List mailbox messages
socra agent message list <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--status VALUE | queued, delivered, or acknowledged |
--json | Print JSON output |
socra agent message failure-classification
Read why a Channels request failed (Account admin/owner only)
socra agent message failure-classification <AGENT> <MESSAGE> <EVENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Exact CoAgent ID | Yes |
MESSAGE | Exact failed message ID | Yes |
EVENT | Exact source event UUID | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent message delivery
Read exact Channels delivery metadata (Account admin/owner only)
socra agent message delivery <AGENT> <CHANNELMESSAGE> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Exact CoAgent ID | Yes |
CHANNELMESSAGE | Exact saved Channels message UUID | Yes |
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--json | Print JSON output |
socra agent message sleep
Sleep the current CoAgent if its mailbox is empty
socra agent message sleep [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent message pull
Pull work as the current CoAgent
socra agent message pull [options]
| Option | Description |
|---|---|
--in-flight VALUE | Comma-separated message IDs already in flight |
--json | Print JSON output |
socra agent message acknowledge
Acknowledge work as the current CoAgent
socra agent message acknowledge <MESSAGE> [options]
| Argument | Description | Required |
|---|---|---|
MESSAGE | message | Yes |
| Option | Description |
|---|---|
--outcome VALUE | succeeded, failed, or canceled |
--result VALUE | Result summary |
--error VALUE | Failure summary |
--json | Print JSON output |
socra agent message cancel
Cancel a mailbox invocation
socra agent message cancel <MESSAGE> [options]
| Argument | Description | Required |
|---|---|---|
MESSAGE | message | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent message retry
Retry a mailbox invocation
socra agent message retry <MESSAGE> [options]
| Argument | Description | Required |
|---|---|---|
MESSAGE | message | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent messages
List mailbox messages
socra agent messages <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--status VALUE | queued, delivered, or acknowledged |
--json | Print JSON output |
socra agent repository discover
Refresh delegated repository candidate metadata without source grants
socra agent repository discover [options]
| Option | Description |
|---|---|
--provider VALUE | all (default) or github |
socra agent repository discovery delegate
Delegate metadata discovery (Account admin/owner)
socra agent repository discovery delegate <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent repository discovery status
Read metadata delegation
socra agent repository discovery status <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent repository discovery revoke
Revoke metadata discovery (Account admin/owner)
socra agent repository discovery revoke <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent repository create
Register a repository
socra agent repository create <REPOSITORY> [options]
| Argument | Description | Required |
|---|---|---|
REPOSITORY | GitHub owner/repository | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent repository list
List repositories
socra agent repository list [AGENT] [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Optional CoAgent username or ID | No |
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--json | Print JSON output |
socra agent repository remove
Remove repository and grants
socra agent repository remove <REPOSITORY> [options]
| Argument | Description | Required |
|---|---|---|
REPOSITORY | Repository ID | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent repository add
Assign repository access to a CoAgent
socra agent repository add <AGENT> <REPOSITORY> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
REPOSITORY | GitHub owner/repository | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
--permission VALUE | Contents access (default write) Values: read, write. |
--pull-requests-permission VALUE | Pull requests access. A new grant matches Contents. Left out on an update, the current level stays. Values: read, write. |
--actions-permission VALUE | Actions access. A new grant gets read. Left out on an update, the current level stays. Values: read, write. |
socra agent repository revoke
Revoke a grant
socra agent repository revoke <GRANT> [options]
| Argument | Description | Required |
|---|---|---|
GRANT | grant | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent repository grant create
Grant repository access
socra agent repository grant create <AGENT> <REPOSITORY> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | CoAgent username or id | Yes |
REPOSITORY | Repository ID | Yes |
| Option | Description |
|---|---|
--permission VALUE | Contents access (default write) Values: read, write. |
--pull-requests-permission VALUE | Pull requests access. A new grant matches Contents. Left out on an update, the current level stays. Values: read, write. |
--actions-permission VALUE | Actions access. A new grant gets read. Left out on an update, the current level stays. Values: read, write. |
--json | Print JSON output |
socra agent repository grant list
List grants
socra agent repository grant list [AGENT] [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Optional CoAgent username or ID | No |
| Option | Description |
|---|---|
--limit VALUE | Page size (1 to 100) |
--after VALUE | Page cursor |
--json | Print JSON output |
socra agent repository grant delete
Revoke a grant
socra agent repository grant delete <GRANT> [options]
| Argument | Description | Required |
|---|---|---|
GRANT | grant | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent github start
Get GitHub installation URL
socra agent github start [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent github status
Get GitHub connection
socra agent github status [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent github capabilities
Read approved installation permissions (admin only)
socra agent github capabilities [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent github disconnect
Disconnect GitHub
socra agent github disconnect [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent github connect
Open GitHub and wait for installation
socra agent github connect [options]
| Option | Description |
|---|---|
--json | JSON output |
See Troubleshooting for related guidance.