openclaw attach launches Claude Code with a strict temporary MCP config bound
to one Gateway session.
--session <key>binds the grant to a Gateway session. Defaults to the main session.--ttl <ms>requests a positive grant TTL in milliseconds. The Gateway applies its own ceiling.--bin <path>selects the Claude Code binary. Defaults toclaude.--print-configwrites the temporary.mcp.json, prints the launch command and env, and leaves the grant live until TTL expiry.
--strict-mcp-config --mcp-config <path> so ambient
Claude MCP servers do not join the attached session. Normal launches revoke the
grant when the Claude Code process exits.
See also: Gateway CLI, MCP CLI, and ACP CLI.