Linux command
agentbox 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install
npm install -g agentbox-cli
Authenticate
agentbox auth login
List
agentbox sandbox list
List running sandboxes
agentbox sandbox list --state running --limit [25]
Filter sandboxes
agentbox sandbox list --metadata [env=prod,team=ml]
Terminate a specific sandbox
agentbox sandbox kill [sandbox_id]
Terminate every running sandbox
agentbox sandbox kill --all
Scaffold and build
agentbox template create [my-template]; agentbox template build
说明
agentbox is the command-line client for AgentBox.cloud, a managed service that runs AI agents inside isolated x86 and Android cloud sandboxes. The CLI mirrors the capabilities of the AgentBox web dashboard: it authenticates the developer, lists and terminates running sandboxes, and manages the custom template images that define how sandboxes are provisioned. The CLI is typically used alongside the AgentBox Python and JavaScript SDKs. SDKs spawn sandboxes programmatically from application code; the CLI is the administrative companion for auditing, clean-up, and authoring reusable sandbox templates without leaving the terminal. agentbox template create produces a directory containing a template manifest and a Dockerfile-like recipe. agentbox template build packages that directory into an image that subsequent SDK calls can reference by name, giving agent code a consistent, reproducible starting environment.
参数
- auth login
- Authenticate the CLI against AgentBox cloud and persist credentials locally.
- auth logout
- Remove stored credentials from the local machine.
- sandbox list
- List sandboxes visible to the authenticated account.
- sandbox kill _id_
- Terminate the sandbox with the given _id_. Data inside the sandbox is discarded.
- sandbox kill --all
- Terminate every sandbox the account currently has running.
- template create _name_
- Scaffold a new custom sandbox template in the current directory.
- template build
- Build the template defined in the current directory into a deployable image.
- --state _states_
- Filter sandbox list to comma-separated states (running, paused).
- --metadata _key=value,..._
- Filter sandbox list by metadata key/value pairs.
- --limit _N_
- Limit sandbox list results to _N_ entries (default 10).
FAQ
What is the agentbox command used for?
agentbox is the command-line client for AgentBox.cloud, a managed service that runs AI agents inside isolated x86 and Android cloud sandboxes. The CLI mirrors the capabilities of the AgentBox web dashboard: it authenticates the developer, lists and terminates running sandboxes, and manages the custom template images that define how sandboxes are provisioned. The CLI is typically used alongside the AgentBox Python and JavaScript SDKs. SDKs spawn sandboxes programmatically from application code; the CLI is the administrative companion for auditing, clean-up, and authoring reusable sandbox templates without leaving the terminal. agentbox template create produces a directory containing a template manifest and a Dockerfile-like recipe. agentbox template build packages that directory into an image that subsequent SDK calls can reference by name, giving agent code a consistent, reproducible starting environment.
How do I run a basic agentbox example?
Run `npm install -g agentbox-cli` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does auth login do in agentbox?
Authenticate the CLI against AgentBox cloud and persist credentials locally.