Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

29 pages for --environment.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

scripting Claude Developer Platform · in the page cli-sdks-libraries/cli/scripting …essions create \ --agent agent_011CYm1BLqPXpQRk5khsSXrs \ --environment-id env_01595EKxaaTTGwwY3kyXdtbs \ --title "Summarization task" ``` ```text Output wrap { "i… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …t '{type: agent, id: agent_011CYm1BLqPXpQRk5khsSXrs, version: 1}' \ --environment-id env_01595EKxaaTTGwwY3kyXdtbs \ --title "CLI docs test session" ``` Repeatable flags build arrays. Each `--tool… budgets Claude Developer Platform · in the page managed-agents/budgets …a number. ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --budget '{type: limit, max_list_cost: {amount: "125", currency: USD}}' ``` ```pytho… DCF Model Rubric Claude Developer Platform · in the page managed-agents/define-outcomes …a session ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --title "Financial analysis on Costco" # Define the outcome: SESSION_ID is the ID from… environments Claude Developer Platform · in the page managed-agents/environments …' ``` ```bash CLI ant beta:sessions create --agent "$AGENT_ID" --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.create( agent=agent.id,… files Claude Developer Platform · in the page managed-agents/files …``bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" <<EOF resources: - type: file file_id: $FILE_ID mount_path: /data.csv EOF… github Claude Developer Platform · in the page managed-agents/github …``bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" <<'EOF' resources: - type: github_repository url: https://github.com/org/repo… mcp-connector Claude Developer Platform · in the page managed-agents/mcp-connector …``bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --vault-id "$VAULT_ID" ``` ```python Python session = client.beta.sessions.create(… multiagent-orchestration Claude Developer Platform · in the page managed-agents/multiagent-orchestration …h CLI ant beta:sessions create \ --agent "$LEAD_AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.create( agent=lead_agent.id,… onboarding Claude Developer Platform · in the page managed-agents/onboarding …beta:sessions create \ --agent agent_01J8XkN5uT3vHpLqRfWdY2 \ --environment-id env_01K2mPsT7hNwR4jXuLvCqD8 \ --title "My first session" ``` ```python Python session = client.beta.se… quickstart Claude Developer Platform · in the page managed-agents/quickstart …ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --title "Quickstart session" ``` ```python Python session = client… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …ers_polling` is at least 1: ```bash ant beta:environments:work stats --environment-id "$ANTHROPIC_ENVIRONMENT_ID" ``` If `workers_polling` stays at 0, the worker isn't reaching the queue: confirm `A… self-hosted-sandboxes-operations Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-operations …: 2023-06-01" ``` ```bash CLI ant beta:environments:work stats --environment-id "$ANTHROPIC_ENVIRONMENT_ID" ``` ```python Python import os import anthropic client = anthropic.Anthr… self-hosted-sandboxes-reference Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-reference …---------------------------------------------------------------- | | `--environment-id` | The environment to poll for work. Also reads from `ANTHROPIC_ENVIRONMENT_ID`.… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …``bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ANTHROPIC_ENVIRONMENT_ID" \ --metadata '{"input_file": "s3://my-bucket/data.csv"}' ``` ```python Pytho… sessions Claude Developer Platform · in the page managed-agents/sessions …' ``` ```bash CLI ant beta:sessions create --agent "$AGENT_ID" --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.create( agent=agent.id,… skills Claude Developer Platform · in the page managed-agents/skills …``bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" <<'EOF' resources: - type: github_repository url: https://github.com/org/repo… vaults Claude Developer Platform · in the page managed-agents/vaults …``bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --vault-id "$VAULT_ID" \ --title "Slack digest" ``` ```python Python session =… Claude Code changelog Claude Code CLI · in the page changelog …e the `auto` permission policy * Self-hosted runners: Changed `claude --environment <id>` to create its session through the current Sessions API; printed and JSON session ids keep their session\_… for… CLI reference Claude Code CLI · in the page cli-reference …| | `--environment <environment-id>` | Create a new cloud session that runs on the [self-hosted environment](/docs/en/se… Configure cloud environments Claude Code CLI · in the page cloud-environments …self-hosted environment](/docs/en/self-hosted-environments), passing `--environment <environment-id>` with its `ccpool_` ID [when you dispatch a session](/docs/en/self-hosted-environments-testing#run-… Self-hosted environments Claude Code CLI · in the page self-hosted-environments …oud`](/docs/en/claude-code-on-the-web#from-terminal-to-cloud) or an [`--environment` dispatch](/docs/en/self-hosted-environments-testing#run-the-test-loop), can run in self-hosted environments. [Claud… Customize sessions in self-hosted environments Claude Code CLI · in the page self-hosted-environments-configuration …_POOL_ID`; the CLI flag and env var names use `environment`, such as `--environment-secret-file`. ## Wrapper scripts Use a wrapper script when each session needs setup the runner can't do on its own… Deploy self-hosted environments to production Claude Code CLI · in the page self-hosted-environments-deploy …ith the git proxy on: ```bash theme={null} claude self-hosted-runner --environment-secret-file '/etc/claude/environment-secret' --base-dir '<writable-dir>' --use-anthropic-git-proxy ``` At startup,… Self-hosted environments quickstart Claude Code CLI · in the page self-hosted-environments-quickstart …A ready host prints the runner's usage text, listing flags such as `--environment-secret-file`. On versions older than 2.1.224, the command prints the general `claude --help` output instead; upgrade… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …CLI flags and environment variables spell it `environment`, such as `--environment-secret-file`; the deprecated `pool` spellings still work, as the [`--environment-secret-file` row](#runner-cli-flags… Test self-hosted environments end to end Claude Code CLI · in the page self-hosted-environments-testing …re the variable might be set by accident. ## Run the test loop The `--environment` and `--ref` dispatch flags require Claude Code v2.1.224 or later on the machine that runs the script, the same floo… Configuration reference Claude Documentation · in the page third-party/claude-desktop/configuration …entry reaches the executable as one argument, exactly as written: `["--environment", "production"]` runs `helper --environment production`. Use it to keep one installed script and let the configurati… Write a credential helper Claude Documentation · in the page third-party/claude-desktop/credential-helper …t or tenant. This configuration runs `/usr/local/bin/corp-cred-helper --environment production`: ```json theme={null} { "inferenceCredentialHelper": "/usr/local/bin/corp-cred-helper", "inferenceC…
Feedback