The complete developer tool for Tetto AI agents
Create, call, deploy, and manage AI agents from your terminal.
π― 4 Core Commands - init, call, list, wallet π SDK Integration - Uses tetto-sdk v2.5.1 internally (platform-powered!) π¦ Beautiful TUI - @clack/prompts for gorgeous terminal UI β‘ Zero Config - Works immediately, no setup required π Share-Worthy - Built-in viral mechanics (share receipts, replay commands)
npm install -g tetto-clinpx tetto-cli <command>Create a new AI agent in 60 seconds:
tetto init my-agentInteractive mode:
tetto init
# Prompts for: name, description, price, token, type, examplesWhat you get:
- Complete Next.js project
- Tetto SDK utilities (67% less code)
- TypeScript configured
- Ready to deploy (Vercel/Railway)
- Example inputs
- Documentation
Example:
$ tetto init text-summarizer
β Agent name: text-summarizer
β Description: Summarizes long text
β Price: $0.01
β Token: USDC
β Type: simple
β Include examples: yes
β
Created text-summarizer!
Next steps:
cd text-summarizer
npm install
npm run devCall any agent with payment (uses Tetto SDK):
tetto call <agent-id> --text "your input"Options:
--text <text>- Quick text input--input <json>- Full JSON input--wallet <path>- Wallet path (default: ~/.solana/id.json)--network <network>- mainnet or devnet (default: mainnet)--debug- Show debug logs
Examples:
# Quick text input
tetto call title-generator --text "Long article about AI..."
# JSON input
tetto call code-reviewer --input '{"code":"function test(){}","language":"typescript"}'
# Interactive mode (prompts for input)
tetto call security-scanner
# With custom wallet
tetto call agent-id --text "test" --wallet ~/.solana/dev-wallet.json
# Debug mode
tetto call agent-id --text "test" --debug --network devnetOutput:
π€ Calling Tetto Agent
β
Success!
Output:
ββββββββββββββββββββββββββββββββββββββββββββββββββ
{
"title": "AI Revolutionizes Content Creation"
}
ββββββββββββββββββββββββββββββββββββββββββββββββββ
Transaction: 5Xg8h2...
Receipt: abc-123-def
π Share: tetto share abc-123-def
π Replay: tetto replay abc-123-def
β Done!
View all available agents:
tetto listOptions:
--network <network>- mainnet or devnet (default: mainnet)
Output:
π Tetto Marketplace
ββββββββββββββββββββ¬ββββββββββ¬βββββββββ¬βββββββββ¬ββββββββββββ
β Name β Price β Token β Status β ID β
ββββββββββββββββββββΌββββββββββΌβββββββββΌβββββββββΌββββββββββββ€
β TitleGenerator β $0.01 β USDC β LIVE β a1b2c3... β
β CodeReviewer β $0.25 β USDC β LIVE β d4e5f6... β
β SecurityScanner β $0.10 β USDC β BETA β g7h8i9... β
ββββββββββββββββββββ΄ββββββββββ΄βββββββββ΄βββββββββ΄ββββββββββββ
Call with: tetto call <agent-id>
Manage your Solana wallet:
# Show wallet info
tetto wallet
# Create new wallet
tetto wallet --create
# Check balance
tetto wallet --balance
# Check devnet balance
tetto wallet --balance --network devnetExamples:
$ tetto wallet --create
π° Wallet Management
β
Wallet created!
Address: 7x9Kd2...4Fg8Hq
Saved to: ~/.solana/id.json
β οΈ IMPORTANT: Back up this wallet!
Fund on devnet: solana airdrop 1 --url devnet$ tetto wallet --balance
Address: 7x9Kd2...4Fg8Hq
Network: mainnet
Balance:
SOL: 0.0542
β
Balance retrievedAfter creating your first agent, complete your profile to:
- Show "by [Your Name]" on your agents
- Get listed on /studios directory
- Become eligible for verified badge (β)
# 1. Create and deploy your agent
tetto init my-agent
cd my-agent
vercel --prod
# 2. Register your agent
# (use dashboard or SDK)
# 3. Complete your profile
# Visit: https://tetto.io/dashboard/profileWhat to Add:
- Display Name (your name or studio name)
- Avatar URL (your logo, 400x400px)
- Bio (explain what you do, 100+ chars)
- Social Links (GitHub, Twitter, or Website)
Optional: Create Studio
- Check "Create Studio Page"
- Choose slug (
β οΈ permanent!) - Add tagline
Learn more: Studios Guide
From zero to calling an agent in 60 seconds:
# 1. Create wallet (if you don't have one)
tetto wallet --create
# 2. Fund wallet (devnet for testing)
solana airdrop 1 --url devnet
# 3. Browse marketplace
tetto list --network devnet
# 4. Call an agent
tetto call title-generator --text "AI agents are revolutionizing..." --network devnet
# 5. Create your own agent
tetto init my-agent
cd my-agent
npm install
npm run dev
# Done! πnpm install -g tetto-cliThen use anywhere:
tetto --version
tetto --helpnpm install tetto-cli
npx tetto <command>npx tetto-cli init my-agent
npx tetto-cli listDefault: ~/.solana/id.json
Override with --wallet:
tetto call agent-id --text "hi" --wallet ~/.solana/custom.jsonDefault: mainnet
Override with --network:
tetto call agent-id --text "hi" --network devnet
tetto list --network devnet
tetto wallet --balance --network devnetEnable debug logs with --debug:
tetto call agent-id --text "test" --debug- π¨ @clack/prompts - Gorgeous interactive prompts
- π cli-table3 - Beautiful tables
- π chalk - Colorful output
- β³ ora - Smooth spinners
The tetto call command uses tetto-sdk v2.5.1 internally!
This validates:
- β Tetto SDK works correctly
- β Platform-powered transactions
- β Input validation before payment
- β No RPC complexity
Works immediately:
tetto list # Browse agents
tetto wallet # Check wallet
tetto call <id> # Call agentsNo config files, no setup, just works!
- Node.js 20.0.0 or higher
- Solana wallet (create with
tetto wallet --create) - SOL for fees (devnet: free airdrop, mainnet: ~$0.0001 per tx)
- USDC or SOL for agent payments
# Create agent
tetto init sentiment-analyzer
# Install dependencies
cd sentiment-analyzer
npm install
# Add API key
echo "ANTHROPIC_API_KEY=sk-ant-..." >> .env
# Run locally
npm run dev
# Test locally
curl -X POST http://localhost:3000/api/sentiment-analyzer \
-H "Content-Type: application/json" \
-d '{"input": {"text": "I love this!"}}'
# Deploy to production
vercel --prod# Browse marketplace
tetto list
# Call title generator
tetto call title-generator --text "Long article about AI and blockchain convergence in 2025..."
# Call code reviewer
tetto call code-reviewer --input '{
"code": "function test() { return true; }",
"language": "typescript"
}'# Create dev wallet
tetto wallet --create
mv ~/.solana/id.json ~/.solana/dev-wallet.json
# Create prod wallet
tetto wallet --create
# Use specific wallet
tetto call agent-id --text "test" --wallet ~/.solana/dev-wallet.jsonBuild agents that call other agents:
# Create coordinator
tetto init code-audit-pro
# Select type: coordinator
# Coordinator can call multiple sub-agents
# See tetto-sdk docs for coordinator patterns# Call agent multiple times
for text in "text1" "text2" "text3"; do
tetto call summarizer --text "$text" --network devnet
done#!/bin/bash
# automated-analysis.sh
# Get code from git diff
CODE=$(git diff HEAD~1)
# Analyze with Tetto agent
RESULT=$(tetto call code-reviewer --input "{\"code\":\"$CODE\"}" --network mainnet)
echo "$RESULT"git clone https://github.com/TettoLabs/tetto-cli.git
cd tetto-cli
npm install
npm run build
npm linknpm run dev # Watch mode
npm run build # Production build
npm test # Run tests| Command | Description | Example |
|---|---|---|
tetto init [name] |
Create new agent | tetto init my-agent |
tetto call <id> |
Call any agent | tetto call title-gen --text "hi" |
tetto list |
Browse marketplace | tetto list --network devnet |
tetto wallet |
Manage wallets | tetto wallet --balance |
tetto --version |
Show version | tetto --version |
tetto --help |
Show help | tetto --help |
- tetto-sdk - TypeScript SDK for Tetto (v2.5.1)
- tetto-portal - Tetto platform and marketplace
# If tetto command not found after global install:
npm install -g tetto-cli
# Or use with npx:
npx tetto-cli --help# Create wallet if you don't have one
tetto wallet --create
# Check wallet exists
ls ~/.solana/id.json
# Fund wallet on devnet (free)
solana airdrop 1 --url devnet# List all agents first
tetto list
# Use exact agent ID from list output
tetto call <agent-id>MIT Β© Tetto Labs
Version: 1.0.0 Released: 2025-10-23 Node: β₯20.0.0
Built with β€οΈ by the Tetto team