Search the documentation
15 pages for --session-id.
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
…er message"> Copy the session `id` from the previous output into `--session-id`: ```bash ant beta:sessions:events send \ --session-id session_01JZCh78XvmxJjiXVy3oSi7K \ --even…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…:agents retrieve --agent-id agent_01... ant beta:sessions:events list --session-id session_01... ``` ### Global flags | Flag | Description…
budgets
Claude Developer Platform · in the page
managed-agents/budgets
…} }' ``` ```bash CLI ant beta:sessions update \ --session-id "$SESSION_ID" \ --budget '{type: limit, max_list_cost: {amount: "500", currency: USD}}' ``` ```python Python…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…ome — agent starts working on receipt ant beta:sessions:events send --session-id "$SESSION_ID" <<YAML events: - type: user.define_outcome description: Build a DCF model for Costco in .xl…
events-and-streaming
Claude Developer Platform · in the page
managed-agents/events-and-streaming
…EOF ``` ```bash CLI ant beta:sessions:events send --session-id "$SESSION_ID" <<'YAML' events: - type: user.message content: - type: text…
files
Claude Developer Platform · in the page
managed-agents/files
…```bash CLI RESOURCE_ID=$(ant beta:sessions:resources add \ --session-id "$SESSION_ID" \ --type file \ --file-id "$FILE_ID" \ --transform id --raw-output) ``` ```python Pyth…
github
Claude Developer Platform · in the page
managed-agents/github
…# List resources on the session ant beta:sessions:resources list --session-id "$SESSION_ID" # Rotate the authorization token on a specific resource ant beta:sessions:resources update \ -…
migration
Claude Developer Platform · in the page
managed-agents/migration
…message exec {stream}< <(ant beta:sessions:events stream \ --session-id "$session_id" \ --transform type --raw-output) ant beta:sessions:events send \ --session-id "$sessio…
multiagent-orchestration
Claude Developer Platform · in the page
managed-agents/multiagent-orchestration
…)"' ``` ```bash CLI ant beta:sessions:threads list --session-id "$SESSION_ID" ``` ```python Python for thread in client.beta.sessions.threads.list(session.id):…
permission-policies
Claude Developer Platform · in the page
managed-agents/permission-policies
…I # Allow the tool to execute ant beta:sessions:events send \ --session-id "$SESSION_ID" \ --event "{type: user.tool_confirmation, tool_use_id: $AGENT_TOOL_USE_EVENT_ID, result: allow}"…
session-operations
Claude Developer Platform · in the page
managed-agents/session-operations
…] } } EOF ``` ```bash CLI ant beta:sessions update --session-id "$SESSION_ID" <<'YAML' agent: tools: - type: agent_toolset_20260401 - type: mcp_toolset mcp…
sessions
Claude Developer Platform · in the page
managed-agents/sessions
…message. echo "Seeded event: $(ant beta:sessions:events list \ --session-id "$SEEDED_SESSION_ID" \ --format raw \ --transform 'data.#(type=="user.message").content.0.text' --raw-output)…
CLI reference
Claude Code CLI · in the page
cli-reference
…| | `--session-id` | Use a specific session ID for the conversation (must be a valid UUID)…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…(#resume-sessions-after-stopping-the-server). Can't be combined with `--session-id`, `--spawn`, `--capacity`, or `--create-session-in-dir`. Requires Claude Code v2.1.200 or later; earlier versions rej…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…configure a session, such as `--resume`, `--continue`, `--teleport`, `--session-id`, or `--init-only`. `--cloud` is rejected with a session ID or URL, and in non-interactive runs when it carries a des…