Skip to main content

Creating an Agent

oc agent create provisions a managed agent with a core runtime:
--core is required. OpenComputer boots a sandbox with the runtime pre-installed and an instance running. To create a raw agent with your own snapshot and entrypoint, use the REST API directly.

Listing & Inspecting

oc agent ls shows a table with ID, core, channels, packages, and age. Add --json for machine-readable output. oc agent get also shows instance status if one exists.

Connecting Channels

Connect messaging platforms to your agent. Currently supports Telegram.
See Telegram channel for setup details.

Installing Packages

Extend what the agent can do with packages like gbrain for persistent memory.

Deleting an Agent

Cascades to instances and sessions — the sandbox is destroyed. The command refuses to delete without --yes when stdin is not a TTY, so a typo in a script can’t silently destroy state.

Shell Access

Any agent is also a sandbox. Drop into it for manual inspection and debugging:

Common Patterns

Create a full agent setup

Script with JSON output

Full flag reference: CLI Reference. REST API equivalents: Agents REST.