Agent Sandbox Registry

agent-sandbox

CLI Evidence: Config

无英文版

.agents/evidence/cli/config/config.md

CLI Evidence: Config

config get region(默认值)

$ abx config get region
cn-hangzhou
Exit code: 0

config get sandbox_api_key(未设置)

$ abx config get sandbox_api_key
(not set)
Exit code: 0

config get sandbox_api_key(已设置, masked)

$ abx config get sandbox_api_key
sk-***456
Exit code: 0

config get sandbox_api_key(进程环境变量, masked)

$ abx config get sandbox_api_key
sk-***456
Exit code: 0

config get unknown_key(错误)

$ abx config get unknown_key
Exit code: 2

stderr:

Unknown config key: 'unknown_key'
  Suggestion: Available keys: access_key_id, access_key_secret, acr_namespace, api_url, domain, github_token, http2, http_timeout, llm_api_key, llm_base_url, llm_model, max_retries, region, sandbox_api_key

config get qwen_code_model(已移除)

$ abx config get qwen_code_model
Exit code: 2

stderr:

Config key 'qwen_code_model' was removed.
  Suggestion: Use 'llm_model'. NL inference and the coding agent share one LLM profile: llm_api_key, llm_base_url, llm_model.

config get llm_model(业务默认)

$ abx config get llm_model
qwen3-coder-plus
Exit code: 0

config set region

$ abx config set region cn-shanghai
Set region = cn-shanghai
Exit code: 0

config set llm_api_key(masked)

$ abx config set llm_api_key sk-mykey12345678
Set llm_api_key = sk-***678
Exit code: 0

config set region ""(清除, 回落默认)

$ abx config set region ""
Cleared region (falls back to default: cn-hangzhou).
Exit code: 0

config set sandbox_api_key ""(清除凭证)

$ abx config set sandbox_api_key ""
Cleared sandbox_api_key (now not set).
Exit code: 0

config set region ""(env 仍生效, 值不显示)

$ abx config set region ""
Cleared region (falls back to default: cn-hangzhou); environment variable SANDBOX_REGION still overrides it at runtime (value not shown).
Exit code: 0

config list

$ abx config list
── Sandbox authentication ──────────────────────────────────────
sandbox_api_key    (not set)

── Alibaba Cloud credentials ───────────────────────────────────
access_key_id      (not set)
access_key_secret  (not set)
acr_namespace      (not set)

── Connection ──────────────────────────────────────────────────
api_url            https://api.cn-hangzhou.e2b.fc.aliyuncs.com (default)
region             cn-hangzhou (default)
domain             cn-hangzhou.e2b.fc.aliyuncs.com (default)
http_timeout       30.0 (default)
http2              True (default)
max_retries        3 (default)

── LLM ─────────────────────────────────────────────────────────
llm_api_key        (not set)
llm_model          qwen3-coder-plus (default)
llm_base_url       https://dashscope.aliyuncs.com/compatible-mode/v1 (default)

── Integrations ────────────────────────────────────────────────
github_token       (not set)

── Shortcuts ───────────────────────────────────────────────────
shortcuts.create    sandbox create (default)
shortcuts.list      sandbox list (default)
shortcuts.info      sandbox info (default)
shortcuts.kill      sandbox kill (default)
shortcuts.exec      sandbox exec (default)
shortcuts.connect   sandbox connect (default)
shortcuts.upload    sandbox upload (default)
shortcuts.download  sandbox download (default)
shortcuts.run       sandbox run (default)
shortcuts.install   template install (default)
shortcuts.init      template init (default)
shortcuts.deploy    deploy (default)
Exit code: 0

config list --json

$ abx --json config list
{
  "sandbox_api_key": null,
  "access_key_id": null,
  "access_key_secret": null,
  "acr_namespace": null,
  "api_url": "https://api.cn-hangzhou.e2b.fc.aliyuncs.com",
  "region": "cn-hangzhou",
  "domain": "cn-hangzhou.e2b.fc.aliyuncs.com",
  "http_timeout": 30.0,
  "http2": true,
  "max_retries": 3,
  "llm_api_key": null,
  "llm_model": "qwen3-coder-plus",
  "llm_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  "github_token": null,
  "shortcuts": {
    "create": "sandbox create",
    "list": "sandbox list",
    "info": "sandbox info",
    "kill": "sandbox kill",
    "exec": "sandbox exec",
    "connect": "sandbox connect",
    "upload": "sandbox upload",
    "download": "sandbox download",
    "run": "sandbox run",
    "install": "template install",
    "init": "template init",
    "deploy": "deploy"
  }
}
Exit code: 0

config init(非 TTY:打印非交互命令)

$ abx config init
Non-interactive setup. Run these commands to configure abx:

  abx config set sandbox_api_key <E2B_API_KEY>
  abx config set region cn-hangzhou
  abx config set llm_api_key <DASHSCOPE_OR_MODELSTUDIO_KEY>

  # Required to build, push, and install templates:
  abx config set acr_namespace <ACR_NAMESPACE>
  abx config set access_key_id <ALICLOUD_ACCESS_KEY_ID>
  abx config set access_key_secret <ALICLOUD_ACCESS_KEY_SECRET>

  # Optional overrides:
  abx config set llm_base_url <OPENAI_COMPATIBLE_BASE_URL>
  abx config set llm_model qwen3-coder-plus

Environment variables (E2B_API_KEY, ABX_LLM_API_KEY, ACR_NAMESPACE,
ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET) override stored values.
Exit code: 0

config set github_token(masked)

$ abx config set github_token ghp_evidence1234567890
Set github_token = ghp***890
Exit code: 0

config get github_token(未设置)

$ abx config get github_token
(not set)
Exit code: 0

config get github_token(已设置, masked)

$ abx config get github_token
ghp***890
Exit code: 0

config set github_token ""(清除)

$ abx config set github_token ""
Cleared github_token (now not set).
Exit code: 0

config set github_token(非 TTY:缺 VALUE)

$ abx config set github_token
Exit code: 2

stderr:

Missing VALUE for 'github_token' and stdin is not an interactive terminal.
  Suggestion: Pass the value explicitly: 'abx config set github_token <VALUE>'. In CI, inject the GITHUB_TOKEN environment variable as a secret instead of storing it locally.