Live on TON Mainnet

TON blockchain
from your terminal

Manage your wallet, send transfers, swap tokens on DEX, and deploy agent wallets. One CLI for everything TON.

Install CLI Read the Docs
tgw — tongateway cli
How it works
Three steps. No private keys.
01

Install the CLI

One command: npm i -g @tongateway/cli. Works on macOS, Linux, and Windows.

02

Connect your wallet

Run tgw auth, open the link, connect your TON wallet — done.

03

Approve on your phone

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.

Integrations
CLI first. MCP for AI agents.

tgw CLI

Full TON access from your terminal. Wallet, transfers, DEX swaps, agent wallets. Supports --json for scripting.

npm i -g @tongateway/cli

Claude Code

MCP server integration. Claude gets 16 tools for wallet, transfers, DEX, and agent wallets.

Setup guide →

Cursor

MCP server for Cursor. Your AI assistant gets native TON blockchain access.

Setup guide →

MCP Server

Works with any MCP-compatible client. npx @tongateway/mcp

Setup guide →
Need raw HTTP? Use the REST API directly — full Swagger docs included.