ATP CORE · EXAMPLES

Start small. Build across systems.

ATP complements agent interaction protocols and frameworks by adding portable identity and trust evidence around them. These examples point to the canonical implementation.

WORKING ENTRY POINTS

Use Node.js 20 or newer for JavaScript (24 recommended), Python 3.9 or newer for Python, and Git for repository examples. Copy a card’s commands, open your terminal, and run them in a fresh directory. Your browser does not execute local shell commands.

POLICY · RUN A REAL EXAMPLE

See an allowed and blocked action

A permitted fixture read runs; approval-required and denied callbacks stay blocked. No account or model API key is needed. Session completion is not mandate revocation.

Run the action-boundary demo →
git clone https://github.com/agent-trust-protocol/atp-core.git
cd atp-core/examples/action-boundary
npm ci
npm start
Runs locally in your terminal.

SDK · START HERE

Create standalone agent identity material

Install SDK 6.0.2 and create local identity material. Expect did:atp:... and Standalone: true. The identity is ephemeral and not publicly resolvable.

SDK quickstart →
mkdir my-atp-sdk
cd my-atp-sdk
npm init -y
npm install atp-sdk@6.0.2
node --input-type=module -e "import { Agent } from 'atp-sdk'; const agent = await Agent.quickstart('MyBot'); console.log(agent.getDID()); console.log('Standalone:', agent.isStandalone());"
Runs locally in your terminal.

CLI · STARTER

Scaffold an agent project

Create a runnable starter without opening a configuration screen. Expect Standalone: true after npm start. New projects use SDK 6. Follow the migration guide when upgrading an older starter project.

Starter guide →
npx create-atp-agent@1.7.0 my-agent --no-dashboard
cd my-agent
npm start
Runs locally in your terminal.

TERMINAL · PREVIEW A DECISION

Check a shell command without running it

Install the atp terminal CLI, then preview the safe-default profile. Expect ask for Bash. This does not execute Bash or install a guard.

Terminal guide →
npm install -g @atpdeveloper/atp-cli@0.1.1
atp profile check Bash --profile safe-default
Runs locally in your terminal.

PYTHON · POLICY

Ask whether a Python tool may run

Use a Python 3.9+ environment. Expect require_approval for shell access. The evaluator only returns a decision; your application must enforce it.

Python guide →
python3 -m pip install atp-profiles==3.0.0
python3 -c "from atp_profiles import BUILTIN_PROFILES, evaluate_action_with_profile; print(evaluate_action_with_profile(BUILTIN_PROFILES['safe-default'], {'actionType': 'shell', 'state': 'executing'}).decision)"
Runs locally in your terminal.

TESTING · AVAILABLE COVERAGE

Inspect conformance behavior

Run the available suites from a repository checkout after installing dependencies. Passing does not certify every draft capability.

Conformance runner →
git clone https://github.com/agent-trust-protocol/atp-core.git
cd atp-core
npm ci
npm run conformance
Runs locally in your terminal.

INTEGRATE ANYWHERE

Bring your own protocol.

Use ATP with MCP, A2A, ANP, ADK, and agent frameworks. An integration example describes a possible binding; check its repository status before relying on it in production.

Explore integrations →

LEGACY / OPTIONAL

OpenClaw adapter

OpenClaw remains a legacy optional adapter example. It is not a required ATP Core dependency or the starting point for new integrations.

View adapter context →

Community Group drafts are not W3C Standards. Examples and implementation coverage may differ from the evolving specifications.