Skip to content
中文

Assume agents

Use Praxis cloud tools from Claude Code, Codex, or Cursor. Your client supplies the AI; an assume agent supplies a computer, an identity, and permissions, with calls recorded under that agent.

Assume is the fourth agent kind, kind: "assume", and has no conversation model. General, service, and personal agents cannot connect through this MCP endpoint.

Two ways in

Each agent has a fixed MCP endpoint at /agent/v1/agents/{agent_id}/mcp, reachable in either of two ways. The table below lists who each way suits, the credential it needs, where it is revoked, and what it costs.

WayForWhat you installCredentialWhere it is revokedLimits
OAuth (recommended)People in Claude Code, Codex, or Cursor with a browser at handnothing; your client’s own sign-inthe client’s grant for this one agent; 1-hour access tokens, renewed automaticallyConsole → Account → Audit center → Credentials, kind mcp_grantneeds a browser; the grant covers only the agent it was issued for; calls are refused once you leave the organization
API Key (fallback)Scripts, CI, clients without OAuth, and when OAuth failsnothingan organization API Key, fully authorized (grant all)Console → API Keysthe key belongs to the whole organization: one key opens any assume agent’s endpoint in it, and revoking it affects every place that uses it

How to choose: use OAuth whenever a browser can open; use an API Key for scripts, CI, or when OAuth cannot complete.

Both end at the same MCP endpoint, the same tools, and the same permissions. Running the agent, transferring files, permissions, and errors are on Operate.

Prepare an agent

  1. Create an agent on the Console’s Assume agents page. Enter a name; the Console allocates its computer.
  2. Open the agent’s Connect dialog and copy its address. Each agent has a fixed endpoint at /agent/v1/agents/{agent_id}/mcp; you can use its eight-character identity number instead of agent_id.

The examples use the placeholder number K7Q2M9XA. Replace the entire URL with the address from Connect:

https://api.deepraxis.com/agent/v1/agents/K7Q2M9XA/mcp

When managing an assume agent through the API, provide computer_id at creation; vault_ids is optional. Creation and updates reject model, models, subagent_model, subagents, and multiagent with HTTP 400, including fields set to null. Public sessions.create also returns 400 for assume agents. Connect through MCP instead.

After connecting

Both ways reach the same agent and behave the same.

Enabled tools are offered to the client with a praxis_assume_ prefix. Subagents, asking the user a question, plan mode, goals, todos, and session-management tools are not offered; ask your own AI client to handle those. If the tool list has no praxis_assume_bash, enable bash under the agent’s Settings → Tools first.

The MCP instructions first establish four boundaries: you remain your own AI; prefixed tools run on the agent’s cloud computer or call Praxis as that agent; local tools, files, and memory remain yours; cloud files are shared between connections. The agent’s system instructions follow.

Connections to one agent share cloud files and permissions. Each connection keeps its own shell state, including working directory and environment variables, and its own background tasks. Mcp-Session-Id identifies a connection; a client can end it by sending DELETE to the same URL with that header.

Registering a connection does not create a session. When the tool list hits the current version’s cache, the first tool call starts the session, so that call is slower; when the version has no tool-list snapshot yet, the first list request starts a session and creates one. A connection with no session shows — in the Session column of the Console’s detail view. Tool lists and instructions are cached per agent version; the first tool call from a new connection that hits the cache refreshes that version’s snapshot in the background, so reconnect to see changes.

Verify the connection by asking the client to run:

Use praxis_assume_bash to run echo hello-praxis and reply with the output only.

Expected: hello-praxis, and a connection and call record appear on the agent’s Console page.

Next