Dark
Matter
agent context network
Dashboard
Live Demo
Blog
API Docs
Sign out
Your Agents
Each agent gets a unique API key — use it in your code to commit and pull context
+ Create Agent
🤖
No agents yet
Create your first agent above to get an API key
⚡ API Quickstart
darkmatter init
Python SDK
Node.js SDK
// fastest path — no browser required
Copy
# 1. Install and set up (one time)
pip install darkmatter-sdk
darkmatter demo
# see replay, fork, diff locally — no signup
darkmatter init
# creates agent + writes .env — no browser
# 2. Generate a runnable example
darkmatter quickstart single
python darkmatter_example.py
# 3. Open the chain in browser
darkmatter open
# 4. Replay, fork, diff from CLI
darkmatter replay <ctx_id>
darkmatter fork <ctx_id> --from 2 --model gpt-4o-mini
darkmatter diff <ctx_id_a> <ctx_id_b>
# 5. Check setup anytime
darkmatter doctor
// pip install darkmatter-sdk
Copy
# darkmatter init writes .env — loaded automatically
import darkmatter as dm
# Commit a step
ctx = dm.commit(
to_agent_id=
"YOUR_AGENT_ID"
,
payload={
"output"
: result},
event_type=
"commit"
,
# commit | checkpoint | fork | error
)
# → {"id": "ctx_...", "integrity": {"verification_status": "valid"}}
# Replay the chain
replay = dm.replay(ctx[
"id"
])
# → {"chainIntact": true, "totalSteps": 3, "replay": [...]}
# Fork from a checkpoint
fork = dm.fork(ctx[
"id"
], to_agent_id=
"YOUR_AGENT_ID"
)
# Diff two chains
diff = dm.diff(ctx[
"id"
], fork[
"id"
])
# → {"changedSteps": 1, "summary": {"modelsA": [...], "modelsB": [...]}}
# Share a chain link
share = dm.share(ctx[
"id"
], label=
"my first chain"
)
# → {"shareUrl": "https://darkmatterhub.ai/chain/share_..."}
# Spawn a child agent
child = dm.spawn_client(
"fact-checker"
, role=
"validator"
)
child.commit(to_agent_id=child.agent_id, payload={...})
// npm install darkmatter-js
Copy
// npm install darkmatter-js
const dm = require(
'darkmatter-js'
);
// Commit a step
const ctx = await dm.commit({
toAgentId:
"YOUR_AGENT_ID"
,
payload: { output: result },
eventType:
"commit"
,
});
// → { id: "ctx_...", integrity: { verification_status: "valid" } }
// Replay the chain
const replay = await dm.replay(ctx.id);
// → { chainIntact: true, totalSteps: 3 }
// Fork from a checkpoint
const fork = await dm.fork(ctx.id, { toAgentId:
"YOUR_AGENT_ID"
});
// Diff two chains
const diff = await dm.diff(ctx.id, fork.id);
// → { changedSteps: 1 }
// Share a chain link
const share = await dm.share(ctx.id, { label:
"my chain"
});
// → { shareUrl: "https://darkmatterhub.ai/chain/share_..." }
Commit Log
Context handoffs — click any row to inspect. Export for audits. View chain to replay lineage.
Log
Chain View
↓ Export
↻ Refresh
Message · click to expand context
Time
🌑
No commits yet
Connect an agent and start committing context.
Quickstart guide →
Explore Chain View
View Chain
⑂
Chain viewer
Enter any context ID from your commit log to visualize its full decision chain.
tip: click chain on any commit row to jump here instantly
Commit Context
×
Summary
Raw JSON
Request a Feature
×
Your email
Feature request
Send Request
✓ Sent — thank you!
Report a Bug
×
Your email
How can we help?
Send Message
✓ Sent — we'll get back to you shortly.