Skip to main content

Command-line interface for the Teardrop AI agent platform

Project description

teardrop-cli

The fastest way to publish a tool, run an agent, and earn USDC — straight from your terminal.

Teardrop is the crypto-native AI agent platform. Tool authors publish webhooks, get paid per call in USDC, and never touch a dashboard. Agent users run prompts that automatically discover and pay for the right tools.

pip install teardrop-cli
teardrop quickstart        # 60-second guided onboarding

Already onboarded? Jump to Run an Agent or Publish a Tool.


Install

pip install teardrop-cli
teardrop --version

Requires Python ≥ 3.11.


60-Second Quickstart

The wizard walks you through sign-in, BYOK LLM setup, and your first agent run or scaffolded tool:

teardrop quickstart

Prefer the manual path? Pick a sign-in method:

# Wallet-first (no email needed) — generates a wallet on first run if you don't have one
teardrop auth login --siwe --generate-wallet

# Email + password
teardrop auth signup --email you@example.com --org-name acme

# Already have an account
teardrop auth login --email you@example.com

Then run your first agent:

teardrop run "Summarize the latest ETH gas trends"

Sign In

Goal Command
Create account & org teardrop auth signup
Sign in with wallet (existing key) teardrop auth login --siwe --key-file wallet.key
Generate a new wallet & sign in teardrop auth login --siwe --generate-wallet
Email + password teardrop auth login --email you@example.com
Pre-issued JWT teardrop auth login --token <jwt>
Show identity teardrop auth status
Sign out teardrop auth logout

Private keys are never persisted by the CLI. Sessions are stored in your OS keyring.

For machine-to-machine credentials, env-var precedence, and CI patterns, see docs/cli-reference.md.


Publish a Tool

Scaffold a starter spec, edit it, and publish:

teardrop tools init my_scraper       # writes ./tool.json
$EDITOR tool.json                    # set webhook_url, schema, price
teardrop tools probe my_scraper      # test webhook health before publishing
teardrop tools publish --from-file tool.json \
    --settlement-wallet 0xYourChecksumAddress

Or run the interactive wizard:

teardrop tools publish

Tool name rules: ^[a-z][a-z0-9_]*$, ≤ 64 chars. Prices are in atomic USDC (6 decimals): 5000 = $0.005 per call. Settlement wallet is required once before your first payout.

Test your webhook before publishing with teardrop tools probe <tool-name>. Optionally pass --auth-header-name and --auth-header-value if your webhook requires auth, or use --method and --payload to customize the probe request.

Manage existing tools: teardrop tools list | info | update | pause | delete | probe. Full reference: docs/cli-reference.md.


Earn

teardrop earnings balance            # marketplace balance
teardrop earnings history            # per-call history
teardrop earnings withdraw 10.00     # to your settlement wallet
teardrop earnings withdrawals        # past payouts

On-chain withdrawals typically settle in 1–5 minutes.


Run an Agent

teardrop run "What is the current ETH gas price?"

# Continue a thread
teardrop run "Follow up" --thread <thread-id>

# Pass structured context
teardrop run "Process this order" --context '{"order_id":"ord_123"}'

# Machine-readable output
teardrop run "..." --json --no-stream

# Include UI component data for dashboard export (adds ~60s overhead)
teardrop run "..." --json --with-ui

Streaming output renders Markdown live with inline tool calls. A token + cost summary prints at the end. By default, CLI output is optimized for scripting and automation (emit_ui=false); use --with-ui only if you need structured UI component data in the JSON output.

If a run fails on credit, top up via the dashboard:

teardrop balance   # check credits

To add credits, visit teardrop.dev.


Configure Your LLM

One-shot bring-your-own-key wizard:

teardrop llm-config byok

Or set explicitly:

# Quality tier (default)
teardrop llm-config set --provider anthropic --model claude-sonnet-4-6 --routing quality

# Cost tier
teardrop llm-config set --provider openrouter --model deepseek-chat --routing cost

# Speed tier
teardrop llm-config set --provider google --model gemini-3-flash --routing speed

Pipe a key from stdin to keep it out of shell history: --byok-key -. See docs/cli-reference.md for advanced tuning, BYOK details, and benchmarks.


Browse the Marketplace

teardrop marketplace list
teardrop marketplace search "weather"
teardrop marketplace info acme/weather
teardrop marketplace subscribe acme/weather
teardrop marketplace subscriptions

Browsing requires no authentication. Subscribed tools become immediately available to your agents.


Where to Go Next


License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teardrop_cli-0.1.1.tar.gz (67.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teardrop_cli-0.1.1-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

File details

Details for the file teardrop_cli-0.1.1.tar.gz.

File metadata

  • Download URL: teardrop_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 67.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teardrop_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b914b47345d706f8c2a4a5551bf42c5800dff7bec04fc1bdea3f58e420b8e439
MD5 9ff4f7eb3a873653f7a76187bcb881bb
BLAKE2b-256 90abe29bdf9239c4b674c1f8fe2d92bcf49161c6c345a1862db8c2729fcc9959

See more details on using hashes here.

Provenance

The following attestation bundles were made for teardrop_cli-0.1.1.tar.gz:

Publisher: publish.yml on teardrop-ai/teardrop-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teardrop_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: teardrop_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teardrop_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b31da0b1eafac508b41a99c559e38dee435f0118713f69e659f183631c555b4
MD5 b9df655379f2d62819720d324fde2808
BLAKE2b-256 afc2949f429d9546d3be522b1200b0b1118048533e9195f193c33bf8c96b2e25

See more details on using hashes here.

Provenance

The following attestation bundles were made for teardrop_cli-0.1.1-py3-none-any.whl:

Publisher: publish.yml on teardrop-ai/teardrop-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page