Skip to content
中文

Migrate from Anthropic

Code that already uses Anthropic Managed Agents runs here once you change the address to /anthropic/v1 and the model to one from the Praxis model catalog. This page lists what the compatible interface accepts, what it refuses and how it differs from Anthropic. For new projects use the native interface; it adds bindings, environments, versions and more.

Address and headers

ItemRequirement
Addresshttps://api.deepraxis.com/anthropic/v1/agents, and likewise for sessions, environments and skills. For the official SDKs set base_url to https://api.deepraxis.com/anthropic
Authenticationx-api-key: <Key> or Authorization: Bearer <Key>; the same API Key works everywhere, see Authentication
anthropic-versionRequired. Any YYYY-MM-DD date on or after 2023-06-01. The newer date the official SDKs send by default (for example 2026-10-21) also works. A missing value, an earlier date or latest returns 400
anthropic-betaNot required. The official SDKs send managed-agents-2026-04-01; every endpoint also works without it

Native fields that are refused

Extension fields of the native /agent/v1 interface return 400 Unknown field: <name> here. They are never silently ignored:

kind, bindings, environment_id, vault_ids, avatar, apply, version_note, subagent_model.

This is deliberate: request bodies on the compatible interface have exactly Anthropic’s shape, so an extra field means the code is calling the wrong interface. Use the native interface when you need these capabilities. Both interfaces read and write the same agents and can be mixed, but an agent with an unapplied draft saved on the native interface returns 409 when updated through the compatible one; deal with the draft on the native interface first (see Manage agent versions).

Differences from Anthropic

AreaDifference
Modelsmodel accepts only IDs from the Praxis model catalog, for example deepseek-flash. An ID such as claude-… that is not in the catalog returns 400 model … is not in the model catalog. model.settings.reasoning sets the thinking level; other extra model controls (for example speed) return 400
Skillsskills works but supports only { "type": "custom", "skill_id" }; upload the skill first, see Skills. type: "anthropic" (Anthropic prebuilt skills) returns 400, and skill_id must be a skill that exists in your organization
ToolsOnly Anthropic’s 8 official built-in tools are accepted and returned. codemode cannot be switched on or off through this interface (400 Unknown tool), but an existing codemode configuration is preserved when you read and write through it
PermissionsA per-tool permission_policy (always_allow / always_ask) works. The allow/ask/deny permissions rules on a toolset are not accepted (400 Unsupported field) and are not read back; use the native interface for them
MCPValues in mcp_servers[].headers are write-only: responses always show "[redacted]". Sending the object you read back unchanged keeps the stored value; send a new value to replace it. Sessions use the real value at run time
EnvironmentsCreate, read, update and archive work. DELETE returns 501 and points to archive. self_hosted and scope are not supported, and built-in environments are read-only; see Runtime environments

Migration example

The same calls with a different address and model. Save it as migrate.mjs, set PRAXIS_API_KEY, and run node migrate.mjs.

import assert from "node:assert/strict";
import { setTimeout as delay } from "node:timers/promises";
const { PRAXIS_API_KEY } = process.env;
assert(PRAXIS_API_KEY, "Set PRAXIS_API_KEY in the server process");
const base = "https://api.deepraxis.com/anthropic/v1";
async function request(path, body) {
const response = await fetch(`${base}${path}`, {
method: body === undefined ? "GET" : "POST",
headers: {
"x-api-key": PRAXIS_API_KEY,
"anthropic-version": "2023-06-01",
"content-type": "application/json",
},
...(body === undefined ? {} : { body: JSON.stringify(body) }),
signal: AbortSignal.timeout(30_000),
});
const result = await response.json();
if (!response.ok) {
throw new Error(`HTTP ${response.status}; request=${response.headers.get("X-Request-Id")}; ${result.error?.message ?? ""}`);
}
return result;
}
// The same calls you send to Anthropic Managed Agents; only the host and the model id change.
const agent = await request("/agents", {
name: "Migrated agent",
model: "deepseek-flash",
system: "Answer in one short sentence.",
tools: [{ type: "agent_toolset_20260401" }],
});
const session = await request("/sessions", { agent: agent.id });
await request(`/sessions/${session.id}/events`, {
events: [{ type: "user.message", content: [{ type: "text", text: "What is 2 + 2?" }] }],
});
const deadline = Date.now() + 120_000;
let reply = "";
while (Date.now() < deadline && !reply) {
const { data } = await request(`/sessions/${session.id}/events?order=asc&limit=100`);
const last = data.findLastIndex((event) => event.type === "agent.message");
if (last >= 0 && data.slice(last).some((event) => event.type === "session.status_idle")) {
reply = data.filter((event) => event.type === "agent.message")
.flatMap((event) => event.content ?? []).map((block) => block.text ?? "").join("\n");
} else await delay(1500);
}
assert(reply.includes("4"), `Expected 4 in the reply, got: ${reply}`);
console.log({ agent: agent.id, session: session.id, reply });

Expected: the agent ID and session ID, and a reply containing 4.

When it fails

SymptomWhat to do
400 anthropic-version must be a YYYY-MM-DD date on or after 2023-06-01Add anthropic-version: 2023-06-01, or use the official SDK default
400 Unknown field: <name>It is a native field; remove it or use the native interface
400 model … is not in the model catalogUse a model ID from the Praxis model catalog
400 skills[0].type anthropic is not supportedUpload the skill and attach it as custom
409 This agent has an unapplied version …Apply or overwrite that draft on the native interface, then update

For every field see the Claude Managed Agents API reference. Next: Use skills · Run your first agent