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/cli2. Log in
indiegent login
# Opens your browser → approve → done3. Create an agent wallet
indiegent agents create --name "Research Bot" --cap 50
# ✓ Agent wallet created
# Name: Research Bot
# Wallet: my-research-bot
# Cap: $50.004. Fund it
indiegent agents fund "Research Bot" 25
# ✓ Funded $25.00
# ✓ Transaction fees covered automatically5. 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.jsThat'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
- Go to indiegent.com/dashboard
- Sign in with your wallet or email
- Click “Create Agent Wallet”
- Name it, set a spending cap
- Fund it with your credit card or send USDC
- 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 budgetCalling 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?
- How It Works — Understand the full picture
- SDK Reference — Full SDK documentation
- CLI Reference — All commands and options
- Marketplace — Browse available services