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 an Agent
socra agent pause <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent resume
resume an Agent
socra agent resume <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent provision
provision an Agent
socra agent provision <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent wake
wake an Agent
socra agent wake <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent upgrade
upgrade an Agent
socra agent upgrade <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent capacity
Show seat capacity
socra agent capacity [options]
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent usage
Show Agent usage
socra agent usage <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent create
Create an Agent
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 | Agent 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; agent 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 Agents
socra agent list [options]
| Option | Description |
|---|---|
--limit VALUE | Page size (1–100) |
--after VALUE | Page cursor |
--json | Print JSON output |
socra agent get
Get an Agent
socra agent get <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent delete
Delete an Agent and managed resources
socra agent delete <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent 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 | Agent 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 | Agent username or id | Yes |
| Option | Description |
|---|---|
--once | One snapshot |
--json | JSON snapshots |
socra agent runtime-settings
Read own settings as the current Agent principal
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 | Agent 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 | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection assign
Assign to a sleeping Agent with an updated runtime
socra agent connection assign <CONNECTION> <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
AGENT | Agent username or id | Yes |
| Option | Description |
|---|---|
--json | Print JSON output |
socra agent connection unassign
Remove from a sleeping Agent
socra agent connection unassign <CONNECTION> <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
CONNECTION | connection | Yes |
AGENT | Agent 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 Agent username | Yes |
socra agent connection check
Wake and check connection
socra agent connection check <AGENT> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent 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 | Agent 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 Agent username | Yes |
socra agent connection cancel
Cancel pending sign-in
socra agent connection cancel <CONNECTION>
| Argument | Description | Required |
|---|---|---|
CONNECTION | Connection ID or legacy Agent username | Yes |
socra agent secret create
Create a secret
socra agent secret create <AGENT> <NAME> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent 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 | Agent 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 | Agent 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 | Agent 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 | Agent 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 | Agent username or id | Yes |
| Option | Description |
|---|---|
--limit VALUE | Page size (1–100) |
--after VALUE | Page cursor |
--status VALUE | queued, delivered, or acknowledged |
--json | Print JSON output |
socra agent message sleep
Sleep the current Agent 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 Agent principal
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 Agent principal
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 | Agent username or id | Yes |
| Option | Description |
|---|---|
--limit VALUE | Page size (1–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 | Agent 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 | Agent 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 | Agent 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 Agent username or ID | No |
| Option | Description |
|---|---|
--limit VALUE | Page size (1–100) |
--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 an Agent
socra agent repository add <AGENT> <REPOSITORY> [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Agent username or id | Yes |
REPOSITORY | GitHub owner/repository | Yes |
| Option | Description |
|---|---|
--json | JSON output |
--permission VALUE | read or write (default write) |
--actions-permission VALUE | Explicit Actions read or write (default read; omitted updates preserve current grant) |
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 | Agent username or id | Yes |
REPOSITORY | Repository ID | Yes |
| Option | Description |
|---|---|
--permission VALUE | read or write (default write) |
--actions-permission VALUE | Explicit Actions read or write (default read; omitted updates preserve current grant) |
--json | Print JSON output |
socra agent repository grant list
List grants
socra agent repository grant list [AGENT] [options]
| Argument | Description | Required |
|---|---|---|
AGENT | Optional Agent username or ID | No |
| Option | Description |
|---|---|
--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.