Aetheron / Docs
GitHub Shop ← Back

Documentation

Aetheron sells AI work one call at a time. You ask an endpoint to do something, it answers with a price, you pay from your own wallet, and you ask again. There is no account, no subscription and no API key. Everything here describes that exchange and the ways to drive it.

5 components

$0.25 to $1.00 per call

9 agent templates

$4.99, yours to keep

Non-custodial

This code cannot sign

1

Quickstart

A paid endpoint answers an unpaid request with the terms of payment, so curl is a complete client.

REQUEST
curl -sX POST https://aetheronprotocol.com/api/prompt-optimizer \
     -H 'Content-Type: application/json' \
     -d '{"text": "make this prompt better"}'

That returns 402 with an amount and a destination. Send the transfer, then repeat the call with the signature in X-TX-SIG.

2

The X402 flow

Four messages and one transfer. Nothing else.

01

Ask, with no payment attached.

02

Receive 402 carrying amount, currency and wallet.

03

Send the transfer yourself, signed in your wallet.

04

Ask again with the signature. Work is queued.

402 RESPONSE
{
  "status": 402,
  "component": "prompt-optimizer",
  "required": 0.25,
  "currency": "USDC",
  "network": "Solana",
  "wallet": "<receiving address>",
  "accepted_methods": ["USDC"]
}

A client never needs telling out of band what a call costs. Everything required to pay is in the response that refused you.

AI components

ComponentPriceWhat you get
Prompt Optimizer$0.25Loose text rewritten into a structured, agent-ready prompt
Code Explainer$0.50A file explained, rated for complexity, with refactors proposed
Prompt Tester$0.50One prompt run past several personas, each reaction reported
Risk Engine$0.75Monte Carlo simulation, charted paths and outcome distribution
Contract Intelligence$1.00Holder concentration, LP lock, admin powers, honeypot checks

The first three need only an Anthropic key. The last two read Solana and Ethereum, and fall back to whatever sources remain when a provider is missing.

Agent templates

Nine complete Python projects at $4.99 each. You download the source and it is yours: they run on your machine and depend on nothing here to keep working. Each ships with a README, a config.json, its requirements and a licence.

alpha-scannerdiscord-helpermarket-tracker prediction-marketproject-plannerpumpfun-launcher solana-snipersolana-trading-assistantwallet-watcher

Browse the agent store →

Output formats

Every component returns a written report. Pass format in the request body to choose how it is rendered.

pdfdocx htmlmd txt

Anything else is rejected rather than silently downgraded, so a typo surfaces as a 422 instead of quietly returning the wrong thing.

Request headers

HeaderRequiredMeaning
X-USER-WALLETyesThe wallet claiming the purchase. Must be the transaction signer.
X-TX-SIGafter payingThe signature of the transaction that paid for this call.
X-PAYMENT-METHODnoUSDC by default, or AETH.

Free endpoints

GET/api/statusService health and which ledger backend is in use.
GET/api/agentsThe agent catalogue.
GET/api/job-status/{task_id}Poll a queued job.
GET/api/ledgerRecent public ledger entries.
GET/api/my-assets/{wallet}A wallet's purchase history, paginated.
GET/api/price/aethAETH needed for a given USDC price.

A generated OpenAPI explorer is also available at /api-explorer.

Jobs and downloads

Work runs asynchronously. A verified paid call answers 202 with a task id.

202 ACCEPTED
{
  "message": "Prompt queued for processing",
  "asset_id": "X402-PROMPT-A1B2C3D4E5",
  "task_id": "9f2c8ab1-..."
}

Poll /api/job-status/{task_id} until it reports success, then fetch the download URL it returns. Report filenames are cryptographically random, because they are served from a public bucket and the name is the only thing protecting them.

Errors

StatusMeaning
202Payment accepted, work queued.
400Malformed request, such as an empty body.
402Payment required, or partially received. The body carries what is still owed.
409That transaction signature has already been used.
422Input failed validation, such as an address that does not match its chain.
502A pricing source was unreachable. Retry shortly.

Payment methods

USDC on Solana

The default. Prices are exact and settle at the quoted amount.

$AETH on Solana

Priced from a live quote with a one percent tolerance for drift. Activates automatically once the token launches.

Partial payments

Underpay and the shortfall is recorded against your wallet for that component, so a later transfer completes the purchase. The 402 tells you exactly what remains.

402 PARTIAL
{
  "status": 402,
  "message": "Partial payment received",
  "paid": 0.10,
  "required": 0.25,
  "remaining": 0.15,
  "currency": "USDC"
}

The signature that paid it is spent and cannot be presented again.

Security model

Aetheron holds no keys and can sign nothing. Verifying payment means checking that its own balance rose, not that a transfer happened somewhere.

TransactionCredited
Moving tokens between two wallets you control0
Buying the token on a DEX0
Paying somebody else0
Reusing a signature that already bought something409
A real transfer to the payment walletaccepted

The signer must also be the wallet claiming the purchase. Claiming a payment is an insert keyed on the signature, so two requests racing with the same signature cannot both be credited.

TypeScript SDK

v0.3.0

Browser first and framework agnostic. It does not hide the payment step: nothing is auto-paid, and no transaction is built or signed for you.

INSTALL
npm install aetheron-sdk
USAGE
import { AetheronSDK } from "aetheron-sdk";

const aetheron = new AetheronSDK(wallet, connection);

try {
  await aetheron.promptOptimizer({ text: "make this prompt better" });
} catch (err) {
  const terms = aetheron.getPaymentInfo(err);   // null if it was a real error
  terms?.required;   // 0.25
  terms?.wallet;     // where to send it
}

// once the user has signed and sent the transfer
const report = await aetheron.promptOptimizer(
  { text: "make this prompt better", format: "pdf" },
  { txSig }
);

promptOptimizer, codeExplainer, promptTester, contractIntel and downloadAgent all wrap callPaidComponent, which accepts any endpoint, so the Risk Engine and anything added later is reachable before a named method exists. The endpoint defaults to the origin serving the page.

CLI

In development

The same calls from a terminal, for scripting bulk prompt or code analysis. Not yet shipped. This page will show usage the day it does, rather than documentation for something you cannot install.

MCP server

In development

Exposes the components as tools, so an agent can buy and run one directly. The 402 exchange is already the whole interface and nothing about it is specific to a browser. Also not yet shipped.

Self-hosting

Aetheron is MIT licensed and runs on your own machine with Python 3.11 and Redis. There is no database to provision: leave DB_HOST empty and the ledger is a local SQLite file.

SHELL
git clone https://github.com/Aetheron402/Aetheron
cd Aetheron

python -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env          # set PAYMENT_WALLET and OPENAI_API_KEY

redis-server --daemonize yes
.venv/bin/uvicorn Aetheron:app --reload
.venv/bin/celery -A celery_worker.celery worker --loglevel=info

Configuration

Nothing is hardcoded. Every setting is an environment variable, documented in .env.example. Exactly three are required.

VariableRequiredPurpose
PAYMENT_WALLETyesThe Solana wallet that receives every payment.
OPENAI_API_KEYyesPowers all five components.
REDIS_URLyesCelery broker and result backend.
AETH_MINT_ADDRESSnoSetting it activates AETH payments everywhere, with no redeploy.
DB_HOSTnoEmpty means SQLite. Set it to use Postgres.
HELIUS_API_KEYnoSolana RPC and holder lookups for the chain tools.
ETHERSCAN_API_KEYnoEthereum contract source and ABI.

Licence

MIT. Fork it, run it, charge for it. The components are the product; the code that takes payment for them was never the secret.

Source and issues on GitHub →