Quickstart

Get your first AI agent wallet funded and running in under 2 minutes.

Option A: Using the CLI

1. Install the CLI

npm install -g @indiegent/cli

2. Log in

indiegent login
# Opens your browser → approve → done

3. Create an agent wallet

indiegent agents create --name "Research Bot" --cap 50
# ✓ Agent wallet created
#   Name:    Research Bot
#   Wallet:  my-research-bot
#   Cap:     $50.00

4. Fund it

indiegent agents fund "Research Bot" 25
# ✓ Funded $25.00
# ✓ Transaction fees covered automatically

5. Give your agent the API key

# Export your API key into the environment
eval $(indiegent agents env "Research Bot")

# Now your agent process has:
#   INDIEGENT_API_KEY=ig_live_...

node my-agent.js

That's it. Your agent has a budget and can start paying for services — any paid API, not just our marketplace.


Option B: Using the Dashboard

  1. Go to indiegent.com/dashboard
  2. Sign in with your wallet or email
  3. Click “Create Agent Wallet”
  4. Name it, set a spending cap
  5. Fund it with your credit card or send USDC
  6. Click “Copy API Key” to get the key for your agent

Using the Wallet in Your Agent

With the SDK (Recommended)

import { IndieGent } from "@indiegent/sdk";

const agent = new IndieGent({
  apiKey: process.env.INDIEGENT_API_KEY,
  agentWallet: "my-research-agent",
});

// Use marketplace services
const results = await agent.service("exa", "/search", {
  query: "flights Bangkok to Chiang Mai April",
});

// Send an email
await agent.service("pontius", "/send", {
  to: "me@email.com",
  subject: "Trip research",
  body: "Found 3 options...",
});

// Every call is billed automatically from your agent's budget

Calling Any Paid API

IndieGent isn't limited to the marketplace. Use agent.fetch() to call any paid API directly — IndieGent handles the payment.

// Call any paid API — IndieGent handles the payment
const flights = await agent.fetch(
  "https://aviationstack.mpp.tempo.xyz/v1/flights?flight_iata=BR67"
);

// Works with any service that accepts HTTP requests
const weather = await agent.fetch(
  "https://api.weatherapi.mpp.tempo.xyz/v1/current.json?q=London"
);

With any HTTP client

# Authenticate with your API key, specify which agent wallet to charge
curl -X POST https://api.indiegent.com/services/exa/search \
  -H "Authorization: Bearer ig_live_your_key" \
  -H "X-Agent-Wallet: my-research-agent" \
  -H "Content-Type: application/json" \
  -d '{"query": "latest AI research papers"}'

The API key handles authentication. The X-Agent-Wallet header tells IndieGent which agent's budget to charge. That's all your agent needs.

Python

import requests
import os

response = requests.post(
    "https://api.indiegent.com/services/exa/search",
    headers={
        "Authorization": f"Bearer {os.environ['INDIEGENT_API_KEY']}",
        "X-Agent-Wallet": "my-research-agent",
    },
    json={"query": "latest AI research papers"},
)

print(response.json())

Environment Variables

Your agent only needs one environment variable:

INDIEGENT_API_KEY=ig_live_...

The API key identifies your account and authorizes spending. Which agent wallet to charge is specified per-request (via the SDK's agentWallet option or the X-Agent-Wallet HTTP header).


What's Next?

IndieGent— Independent wallets for independent agents

npm install -g @indiegent/cli