open-index/open-npm huggingface dataset:
npm package: @ottocode/openclaw-setu
Description: Setu provider for OpenClaw — pay for AI with Solana USDC. No API keys, just a wallet.
Author: nitishxyz
Latest version: 0.1.11

# @ottocode/openclaw-setu

Setu provider plugin for [OpenClaw](https://github.com/openclaw/openclaw) — pay for AI with Solana USDC.

No API keys. No accounts. Just a Solana wallet with USDC.

## How It Works

```
OpenClaw → localhost:8403 (Setu proxy) → api.setu.ottocode.io → LLM provider
```

1. Auto-generates a Solana wallet (or import your own)
2. Fund the wallet with USDC on Solana
3. Each LLM request is signed with your wallet — payment IS authentication
4. Access 30+ models across Anthropic, OpenAI, Google, DeepSeek, and more

## Quick Start

No project installation needed — this is a global tool.

```bash
# Option 1: Zero-install with bunx (recommended)
bunx @ottocode/openclaw-setu setup

# Option 2: Global install
bun install -g @ottocode/openclaw-setu
openclaw-setu setup
```

```bash
# Fund your wallet with USDC on Solana (address shown during setup)

# Start the proxy
bunx @ottocode/openclaw-setu start

# Restart OpenClaw
openclaw gateway restart
```

## CLI Commands

```
openclaw-setu setup              Interactive setup (wallet + config)
openclaw-setu start              Start the local proxy server

openclaw-setu wallet generate    Generate a new Solana wallet
openclaw-setu wallet import      Import an existing private key
openclaw-setu wallet export      Export your private key
openclaw-setu wallet info        Show wallet address and balances

openclaw-setu config inject      Inject Setu provider into openclaw.json
openclaw-setu config remove      Remove Setu provider from openclaw.json
openclaw-setu config status      Check if Setu is configured
```

All commands work with `bunx @ottocode/openclaw-setu <command>` (no install required).

## As an OpenClaw Plugin

If OpenClaw loads the plugin automatically (via `openclaw.extensions` in package.json), Setu registers:

- **Provider**: `setu` — appears in OpenClaw's auth wizard
- **Service**: `setu-proxy` — auto-starts the local proxy with the gateway
- **Commands**: `/wallet` (show balances), `/setu-status` (check config)

## Wallet Storage

- Private key: `~/.openclaw/setu/wallet.key` (mode 0600)
- OpenClaw config: `~/.openclaw/openclaw.json`

## Environment Variables

- `SETU_PROXY_PORT` — Proxy port (default: 8403)
- `SETU_PRIVATE_KEY` — Alternative to wallet file

## How is this different from ClawRouter?

| | Setu | ClawRouter |
|---|---|---|
| Chain | Solana | Base (EVM) |
| Token | USDC (SPL) | USDC (ERC-20) |
| Protocol | Solana wallet signatures | x402 / EIP-712 |
| Proxy port | 8403 | 8402 |

Both achieve the same goal: pay-per-token AI with no API keys. Choose based on which chain you prefer.