Manage your wallet, send transfers, swap tokens on DEX, and deploy agent wallets. One CLI for everything TON.
One command: npm i -g @tongateway/cli. Works on macOS, Linux, and Windows.
Run tgw auth, open the link, connect your TON wallet — done.
Send transfers, swap tokens, check balances. Transfers get a push notification — approve with one tap.
Install globally:
npm i -g @tongateway/cli
Then authenticate:
tgw auth
And you're ready:
tgw wallet info
tgw transfer send --to alice.ton --amount 1.5
tgw dex swap --from NOT --to TON --amount 10000 --price 0.000289
For AI agent integration, add the MCP server:
claude mcp add-json tongateway '{
"command": "npx",
"args": ["-y", "@tongateway/mcp"],
"env": {
"AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
}
}' --scope user
For AI agent integration, add to Cursor Settings → MCP Servers:
{
"mcpServers": {
"tongateway": {
"command": "npx",
"args": ["-y", "@tongateway/mcp"],
"env": {
"AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
}
}
}
}
For AI agent integration, add to ~/.codex/config.json:
{
"mcpServers": {
"tongateway": {
"command": "npx",
"args": ["-y", "@tongateway/mcp"],
"env": {
"AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
}
}
}
}
Every command supports --json for scripting and AI agents.
Full TON access from your terminal. Wallet, transfers, DEX swaps, agent wallets. Supports --json for scripting.
npm i -g @tongateway/cli
MCP server integration. Claude gets 16 tools for wallet, transfers, DEX, and agent wallets.
Setup guide →MCP server for Cursor. Your AI assistant gets native TON blockchain access.
Setup guide →Works with any MCP-compatible client. npx @tongateway/mcp