TDM Integration Kit
Developer Integration Tools for TDM DaOS
Reference implementations and copy-paste building blocks for teams integrating with TDM DaOS contracts, payments, and agent runtime surfaces.
Documentation • API Reference • GitHub • X/Twitter
What is this?
Reference implementations and copy-paste building blocks for integrating with TDM DaOS (Decentralized Agent Operating System). This kit provides:
- A thin JavaScript client (
@tdm/client) for CLI + local signer workflows - A standalone MCP server (
@tdm/mcp-server) with 19 tools for agent runtimes - Examples for Express, Next.js, FastAPI, and Telegram bots
The canonical TDM SDK (npm install -g tdm-sdk) is the full operator surface. This kit documents the integration contracts exposed by that SDK and provides reference building blocks for advanced integrations.
Quick Start
npm install -g tdm-sdk
tdm connect
tdm status
Pick a recipe from examples or use @tdm/client.
What's Inside
MCP Server (@tdm/mcp-server)
A standalone MCP stdio server exposing TDM session state, capabilities, plugins, memory, and budget context to agent runtimes.
Available Tools
Setup via CLI:
tdm mcp # writes .mcp.json pointing to tdm mcp serve
Examples
Choosing the Right Surface
SDK Integration Surface
For JavaScript/TypeScript integrations, the public tdm-sdk provides:
Vault and Agent Binding
Agent isolation is vault-first:
--vault <name>orTDM_VAULTselects the active vault- Each vault has its own credentials under
~/.tdm/vaults/<name>/ - Agents are scoped to one vault at a time
- MCP follows the same resolution order
tdm vault create photos --use
tdm agent spawn worker-1 --type DISCRETE --limit 5
tdm agent boot worker-1
Optional Route Policy
Layered allowlist for stricter outbound control:
tdm trust verify domain --target api.example.com --resource res_demo123
tdm allowlist add api.example.com --scope vault --vault seller-bot --verified
tdm allowlist check https://api.example.com/private/route --vault seller-bot
Security Notes
- No private keys in this repo -- this is reference code and guidance
- OS keyring required -- CLI stores keys securely
- Local signer is localhost-only -- advanced users only
- Review local automations carefully -- especially when using advanced signer flows
- Keep wallet credentials under your control -- never export private keys
Contributing
- Fork the repository
- Create a feature branch
- Update documentation
- Add examples
- Submit a pull request
Documentation
License
MIT License - see LICENSE for details
Built by the TDM team
Website • Documentation • GitHub • X/Twitter