# Tdm Daos Agent

> >

- **Type:** Skill
- **Install:** `agentstack add skill-todealmarket-tdm-daos-agent-tdm-daos-agent`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ToDealMarket](https://agentstack.voostack.com/s/todealmarket)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ToDealMarket](https://github.com/ToDealMarket)
- **Source:** https://github.com/ToDealMarket/tdm-daos-agent
- **Website:** https://todealmarket.com/docs

## Install

```sh
agentstack add skill-todealmarket-tdm-daos-agent-tdm-daos-agent
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# TDM DaOS Agent

TDM DaOS Agent is the agent guidance layer inside TDM DaOS. Treat the TDM SDK npm
package and Contour Runtime as the canonical product surface; this skill only explains
agent-facing payment interpretation, recovery, and safe next actions.

## Use this skill for

- HTTP 402 responses from `POST /authorize`
- `billingMode`, `settlementMode`, `paymentOptions`, and `retryEndpoint`
- current JS helper names such as `makePayable(...)`, `createFetchHookClient(...)`, `createAuthorizeClient(...)`, `createGatewayClients(...)`, `createSessionTanksClient(...)`, and `createCheckoutClient(...)`
- framework-mode charge helpers: `charge(...)`, `chargeFetchHandler(...)`, `chargeExpressHandler(...)`, `chargeHonoHandler(...)`, `chargeNextHandler(...)`, `chargeElysiaHandler(...)`, `chargeDenoHandler(...)`
- session recovery using `tdm_get_session_state`
- runtime discovery using `tdm_capability_list`
- plugin, contour, budget, and gated memory guidance through current MCP tools
- `session_gas_tank` guidance
- sweep vs cashout clarification
- agent vault command guidance
- agent-first paid execution guidance for tools, APIs, routes, and runtime actions

## Read only what you need

- Read [references/adaptation-map.md](references/adaptation-map.md) for older terminology and draft wording.
- Read [references/authorize-contract.md](references/authorize-contract.md) for current public fields and endpoints.
- Read [references/mcp-runtime.md](references/mcp-runtime.md) for state-based recovery guidance.
- Read [references/sdk-sweep-capabilities.md](references/sdk-sweep-capabilities.md) before suggesting sweep flows.
- Read [references/vault-scenarios.md](references/vault-scenarios.md) for agent vault and cashout guidance.

## Hard rules

1. Do not invent undocumented payment fields.
2. Prefer exact current fields: `allowed`, `authorizationId`, `charged`, `balanceMinor`, `priceMinor`, `billingMode`, `settlementMode`, `paymentOptions`, and `retryEndpoint`.
3. Use `tdm_capability_list` to discover the MCP surface when available.
4. Use `tdm_get_session_state` before asking the user for money.
5. If the state is `UNINITIALIZED`, instruct the user to run `tdm connect`.
6. If the state is `DEPLETED` and dust is available, prefer `tdm sweep`.
7. If the state is `DEPLETED` and no dust is available, suggest `tdm fuel`.
8. Do not describe `tdm sweep` as a cashout.
9. Do not suggest `tdm cashout` as a way to satisfy an active payment challenge.

## Recommended operator commands

- `tdm vault create  [--use]`
- `tdm vault use `
- `tdm connect`
- `tdm login --gateway https://tdm.todealmarket.com` (advanced/manual only)
- `tdm fuel --amount  --yes`
- `tdm sweep --network solana --resume-burner --deposit-address `
- `tdm sweep --network solana --resume-burner --target-agent `
- `tdm sweep --network base --project-id  --treasury `
- `tdm sweep status`
- `tdm cashout`
- `tdm agent list`
- `tdm agent boot `
- `tdm agent status `
- `tdm mcp`
- `tdm mcp serve`

## Named vault guidance

- Prefer one named vault per business contour when operators manage many agents.
- For larger fleets, prefer multiple named vaults over one giant vault.
- If the operator uses named vaults, respect their active vault or explicit `--vault ` choice.

## Product framing guidance

- Treat TDM as DaOS-first: Contour Runtime + TDM Hub + AgentPay/Gateway.
- Treat AgentPay as guidance inside DaOS, not as the whole product.
- Default mental model: price a protected call, authorize it, then continue execution.
- Mention file, note, or content unlock flows only as an additional layer on top of the core agent/runtime payment surface.

## Bundled helpers

- [scripts/fetch_x402_price.mjs](scripts/fetch_x402_price.mjs)
- [scripts/run_tdm_sweep.mjs](scripts/run_tdm_sweep.mjs)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ToDealMarket](https://github.com/ToDealMarket)
- **Source:** [ToDealMarket/tdm-daos-agent](https://github.com/ToDealMarket/tdm-daos-agent)
- **License:** MIT
- **Homepage:** https://todealmarket.com/docs

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-todealmarket-tdm-daos-agent-tdm-daos-agent
- Seller: https://agentstack.voostack.com/s/todealmarket
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
