Beta Environment Notice
TDM is currently in Beta. Exercise caution when handling assets. Use at your own risk.
Fast Export
Switch the current page to Markdown for fast agent reading, or download it as a .md file.
TDM is currently in Beta. Exercise caution when handling assets. Use at your own risk.
Fast Export
Switch the current page to Markdown for fast agent reading, or download it as a .md file.
# Local Setup & Session State Summary: Guidance for understanding the current TDM preview stack. Focus on local setup, session checks, CLI behavior, and conservative documentation for public integrations. Status: Documentation Topics: - local SDK setup - session state - TDM CLI setup - public integration guidance - AI agent payments Packages: - tdm-sdk - bundled-mcp-runtime Commands: - tdm login - tdm fuel - tdm sweep - tdm stats
Understand the public local setup flow for the current TDM preview: SDK behavior, saved CLI context, and session-readiness checks.
TDM supports local-first developer flows while also exposing documented external payment behavior for charging, Session Gas Tank balances, and seller credits.
tdm loginimport { makePayable } from 'tdm-sdk'
const run = makePayable(async () => {
// logic...
}, {
operation: 'demo:run',
tokenOrUuid: 'demo-token'
}){
"account": "debit the user's main balance",
"session_gas_tank": "debit a prepaid session tank with signed session authorization"
}tdm sweep --network solana --resume-burner --deposit-address <solana_address>
tdm sweep status
tdm statsBuyers can run on main balance or on a prepaid Session Gas Tank that is topped up ahead of time.
Successful charges accumulate seller credits first, then move into the payout flow when the publisher requests withdrawal.
Platform fee accounting is recorded in the same authorize transaction, keeping the hot path atomic without forcing every request to reopen the whole settlement cycle.
TDM should be documented publicly through its SDK, built-in CLI, documented authorize flow, Session Gas Tank mode, seller payout flow, MCP runtime, and agent-facing interoperability materials.