Skip to content

CLI

View as Markdown

Use socra agent to manage CoAgents from a terminal. Sign in to the intended Account before running commands.

Install and inspect

sh
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

Text
socra agent pause <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent resume

Resume a CoAgent

Text
socra agent resume <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent restart

Restart a CoAgent

Text
socra agent restart <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent provision

Provision a CoAgent

Text
socra agent provision <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent wake

Wake a CoAgent

Text
socra agent wake <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent upgrade

Upgrade a CoAgent

Text
socra agent upgrade <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent session list

List a CoAgent’s sessions, newest first

Text
socra agent session list <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--jsonPrint JSON

socra agent session get

Inspect invocation, timing, and metered work

Text
socra agent session get <SESSION> [options]
ArgumentDescriptionRequired
SESSIONCoAgent session IDYes
OptionDescription
--jsonPrint JSON

socra agent session logs

Read or follow one session’s timeline

Text
socra agent session logs <SESSION> [options]
ArgumentDescriptionRequired
SESSIONCoAgent session IDYes
OptionDescription
--after VALUEResume after this session event sequence
--limit VALUEEvent page size (1 to 100)
--phase VALUEstartup, work, or shutdown
--message VALUEFilter by CoAgent message ID
--followFollow this session until it ends; never wakes compute
--verboseInclude event source, step, sequence, and work reference
--jsonPrint newline-delimited JSON events

socra agent logs

Read the latest session’s logs; follows only that session

Text
socra agent logs <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--after VALUEResume after this session event sequence
--limit VALUEEvent page size (1 to 100)
--phase VALUEstartup, work, or shutdown
--message VALUEFilter by CoAgent message ID
--followFollow this session until it ends; never wakes compute
--verboseInclude event source, step, sequence, and work reference
--jsonPrint newline-delimited JSON events

socra agent hire-completions

List successful CoAgent hires in your Account (Account admin/owner only)

Text
socra agent hire-completions [options]
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--through VALUECompletion timestamp upper bound; reuse for every page
--jsonPrint JSON output

socra agent capacity

Show whether you can hire another CoAgent

Text
socra agent capacity [options]
OptionDescription
--jsonPrint JSON output

socra agent usage

Show CoAgent usage

Text
socra agent usage <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent create

Create a CoAgent

Text
socra agent create <USERNAME> [options]
ArgumentDescriptionRequired
USERNAMEusernameYes
OptionDescription
--daily-input-tokens VALUEDaily input tokens, or unlimited
--daily-output-tokens VALUEDaily output tokens, or unlimited
--runtime VALUEcodex or claude (default codex)
--jsonPrint JSON output

socra agent update

Update identity, model, effort, or budgets

Text
socra agent update <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--daily-input-tokens VALUEDaily input tokens, or unlimited
--daily-output-tokens VALUEDaily output tokens, or unlimited
--runtime VALUEcodex or claude; CoAgent must be sleeping or paused
--username VALUENew username
--model VALUEModel identifier
--reasoning-effort VALUESupported effort or default
--jsonPrint JSON output

socra agent list

List CoAgents

Text
socra agent list [options]
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--jsonPrint JSON output

socra agent get

Get a CoAgent

Text
socra agent get <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent delete

Delete a CoAgent and managed resources

Text
socra agent delete <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent activity

Get an activity snapshot without waking

Text
socra agent activity <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--after VALUEEvent cursor
--recovery-onlyRead persisted recovery metadata without contacting the runtime
--jsonPrint JSON output

socra agent listen

Watch progress without waking

Text
socra agent listen <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--onceOne snapshot
--jsonJSON snapshots

socra agent runtime-settings

Read own settings as the current CoAgent

Text
socra agent runtime-settings [options]
OptionDescription
--jsonPrint JSON output

socra agent model list

List cached models; --refresh wakes the computer

Text
socra agent model list <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--refreshRefresh from Codex
--jsonPrint JSON output

socra agent model refresh

Wake computer and refresh available models

Text
socra agent model refresh <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent connection assign

Assign to a sleeping CoAgent with an updated runtime

Text
socra agent connection assign <CONNECTION> <AGENT> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent connection unassign

Remove from a sleeping CoAgent

Text
socra agent connection unassign <CONNECTION> <AGENT> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent connection create

Create an AI connection

Text
socra agent connection create <NAME> [options]
ArgumentDescriptionRequired
NAMEnameYes
OptionDescription
--provider VALUEProvider (chatgpt or claude)
--jsonPrint JSON output

socra agent connection list

List your AI connections

Text
socra agent connection list [options]
OptionDescription
--jsonPrint JSON output

socra agent connection token

Connect using a Claude subscription token from claude setup-token

Text
socra agent connection token <CONNECTION> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
OptionDescription
--stdinRead token from stdin
--file VALUERead token from file
--jsonPrint JSON output

socra agent connection login

Start provider browser sign-in

Text
socra agent connection login <CONNECTION> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
OptionDescription
--jsonPrint JSON output

socra agent connection code

Submit Claude browser sign-in code

Text
socra agent connection code <CONNECTION> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
OptionDescription
--attempt VALUESign-in attempt from connection login
--stdinRead code from stdin
--file VALUERead code from file
--jsonPrint JSON output

socra agent connection verify

Verify and refresh credentials

Text
socra agent connection verify <CONNECTION> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
OptionDescription
--jsonPrint JSON output

socra agent connection delete

Delete an AI connection

Text
socra agent connection delete <CONNECTION> [options]
ArgumentDescriptionRequired
CONNECTIONconnectionYes
OptionDescription
--jsonPrint JSON output

socra agent connection get

Read connection status

Text
socra agent connection get <CONNECTION>
ArgumentDescriptionRequired
CONNECTIONConnection ID or legacy CoAgent usernameYes

socra agent connection check

Wake and check connection

Text
socra agent connection check <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent connection connect

Display sign-in code and wait for ChatGPT connection

Text
socra agent connection connect <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--onceReturn device flow details without waiting
--jsonPrint JSON output

socra agent connection disconnect

Disconnect ChatGPT

Text
socra agent connection disconnect <CONNECTION>
ArgumentDescriptionRequired
CONNECTIONConnection ID or legacy CoAgent usernameYes

socra agent connection cancel

Cancel pending sign-in

Text
socra agent connection cancel <CONNECTION>
ArgumentDescriptionRequired
CONNECTIONConnection ID or legacy CoAgent usernameYes

socra agent secret create

Create a secret

Text
socra agent secret create <AGENT> <NAME> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
NAMEEnvironment variable nameYes
OptionDescription
--stdinRead secret from standard input
--file VALUERead secret from file
--env VALUERead secret from local environment variable
--jsonPrint JSON output

socra agent secret list

List secret metadata

Text
socra agent secret list <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent secret get

Get secret metadata (never its value)

Text
socra agent secret get <AGENT> <NAME> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
NAMEEnvironment variable nameYes
OptionDescription
--jsonPrint JSON output

socra agent secret update

Rotate a secret

Text
socra agent secret update <AGENT> <NAME> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
NAMEEnvironment variable nameYes
OptionDescription
--stdinRead secret from standard input
--file VALUERead secret from file
--env VALUERead secret from local environment variable
--jsonPrint JSON output

socra agent secret delete

Delete secret and stored versions

Text
socra agent secret delete <AGENT> <NAME> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
NAMEEnvironment variable nameYes
OptionDescription
--jsonPrint JSON output

socra agent message list

List mailbox messages

Text
socra agent message list <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--status VALUEqueued, delivered, or acknowledged
--jsonPrint JSON output

socra agent message failure-classification

Read why a Channels request failed (Account admin/owner only)

Text
socra agent message failure-classification <AGENT> <MESSAGE> <EVENT> [options]
ArgumentDescriptionRequired
AGENTExact CoAgent IDYes
MESSAGEExact failed message IDYes
EVENTExact source event UUIDYes
OptionDescription
--jsonPrint JSON output

socra agent message delivery

Read exact Channels delivery metadata (Account admin/owner only)

Text
socra agent message delivery <AGENT> <CHANNELMESSAGE> [options]
ArgumentDescriptionRequired
AGENTExact CoAgent IDYes
CHANNELMESSAGEExact saved Channels message UUIDYes
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--jsonPrint JSON output

socra agent message sleep

Sleep the current CoAgent if its mailbox is empty

Text
socra agent message sleep [options]
OptionDescription
--jsonPrint JSON output

socra agent message pull

Pull work as the current CoAgent

Text
socra agent message pull [options]
OptionDescription
--in-flight VALUEComma-separated message IDs already in flight
--jsonPrint JSON output

socra agent message acknowledge

Acknowledge work as the current CoAgent

Text
socra agent message acknowledge <MESSAGE> [options]
ArgumentDescriptionRequired
MESSAGEmessageYes
OptionDescription
--outcome VALUEsucceeded, failed, or canceled
--result VALUEResult summary
--error VALUEFailure summary
--jsonPrint JSON output

socra agent message cancel

Cancel a mailbox invocation

Text
socra agent message cancel <MESSAGE> [options]
ArgumentDescriptionRequired
MESSAGEmessageYes
OptionDescription
--jsonPrint JSON output

socra agent message retry

Retry a mailbox invocation

Text
socra agent message retry <MESSAGE> [options]
ArgumentDescriptionRequired
MESSAGEmessageYes
OptionDescription
--jsonPrint JSON output

socra agent messages

List mailbox messages

Text
socra agent messages <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--status VALUEqueued, delivered, or acknowledged
--jsonPrint JSON output

socra agent repository discover

Refresh delegated repository candidate metadata without source grants

Text
socra agent repository discover [options]
OptionDescription
--provider VALUEall (default) or github

socra agent repository discovery delegate

Delegate metadata discovery (Account admin/owner)

Text
socra agent repository discovery delegate <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent repository discovery status

Read metadata delegation

Text
socra agent repository discovery status <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent repository discovery revoke

Revoke metadata discovery (Account admin/owner)

Text
socra agent repository discovery revoke <AGENT> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
OptionDescription
--jsonPrint JSON output

socra agent repository create

Register a repository

Text
socra agent repository create <REPOSITORY> [options]
ArgumentDescriptionRequired
REPOSITORYGitHub owner/repositoryYes
OptionDescription
--jsonPrint JSON output

socra agent repository list

List repositories

Text
socra agent repository list [AGENT] [options]
ArgumentDescriptionRequired
AGENTOptional CoAgent username or IDNo
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--jsonPrint JSON output

socra agent repository remove

Remove repository and grants

Text
socra agent repository remove <REPOSITORY> [options]
ArgumentDescriptionRequired
REPOSITORYRepository IDYes
OptionDescription
--jsonPrint JSON output

socra agent repository add

Assign repository access to a CoAgent

Text
socra agent repository add <AGENT> <REPOSITORY> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
REPOSITORYGitHub owner/repositoryYes
OptionDescription
--jsonPrint JSON output
--permission VALUEContents access (default write) Values: read, write.
--pull-requests-permission VALUEPull requests access. A new grant matches Contents. Left out on an update, the current level stays. Values: read, write.
--actions-permission VALUEActions 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

Text
socra agent repository revoke <GRANT> [options]
ArgumentDescriptionRequired
GRANTgrantYes
OptionDescription
--jsonPrint JSON output

socra agent repository grant create

Grant repository access

Text
socra agent repository grant create <AGENT> <REPOSITORY> [options]
ArgumentDescriptionRequired
AGENTCoAgent username or idYes
REPOSITORYRepository IDYes
OptionDescription
--permission VALUEContents access (default write) Values: read, write.
--pull-requests-permission VALUEPull requests access. A new grant matches Contents. Left out on an update, the current level stays. Values: read, write.
--actions-permission VALUEActions access. A new grant gets read. Left out on an update, the current level stays. Values: read, write.
--jsonPrint JSON output

socra agent repository grant list

List grants

Text
socra agent repository grant list [AGENT] [options]
ArgumentDescriptionRequired
AGENTOptional CoAgent username or IDNo
OptionDescription
--limit VALUEPage size (1 to 100)
--after VALUEPage cursor
--jsonPrint JSON output

socra agent repository grant delete

Revoke a grant

Text
socra agent repository grant delete <GRANT> [options]
ArgumentDescriptionRequired
GRANTgrantYes
OptionDescription
--jsonPrint JSON output

socra agent github start

Get GitHub installation URL

Text
socra agent github start [options]
OptionDescription
--jsonPrint JSON output

socra agent github status

Get GitHub connection

Text
socra agent github status [options]
OptionDescription
--jsonPrint JSON output

socra agent github capabilities

Read approved installation permissions (admin only)

Text
socra agent github capabilities [options]
OptionDescription
--jsonPrint JSON output

socra agent github disconnect

Disconnect GitHub

Text
socra agent github disconnect [options]
OptionDescription
--jsonPrint JSON output

socra agent github connect

Open GitHub and wait for installation

Text
socra agent github connect [options]
OptionDescription
--jsonJSON output

See Troubleshooting for related guidance.