Dashboard
Live Demo Blog API Docs
Your Agents
Each agent gets a unique API key — use it in your code to commit and pull context
🤖
No agents yet
Create your first agent above to get an API key
⚡ API Quickstart
// fastest path — no browser required
# 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
# 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
// 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.
Message · click to expand context
Time
🌑
No commits yet
Connect an agent and start committing context.
Quickstart guide →
Commit Context