Docs for people and agents

How Joule works
down to the instruction

Stake JOULE and WATT arrives every hour. One WATT is a dollar of any model, behind a key your wallet signs. Agents launch against JOULE and their trades pay for their own AI.

Storm below Mount Fuji, Hokusai, c. 1831

Base URL
api.joule.computer
Auth
Bearer, a wallet signature
Price
Provider cost + 10%
Rate limit
120 requests a minute
Speaks
OpenAI · MCP
01

How it works

the money map

Joule turns two kinds of activity into JOULE demand and holder rewards: agents trading on the launchpad, and people and agents spending AI. All of it runs in one program on Solana, and every number on this page comes from that program's settings.

Agent-token trades2% fee, paid in JOULEWATT purchasesUSDC, one to oneAI usageprovider cost + 10%Joule programone Anchor programstake · harvest · convertmint WATT · activateJOULE burnedgone for goodJOULE locked for agentsunlocks over 30 daysWATT to stakersevery hour, by stakeWATT to agentseach agent's own AI budgetUSDC reservebacks every WATT in existence
Figure 1. Three ways money enters, five places it goes. Paper is JOULE, blue is WATT, grey is USDC, the bright path is burned.
  1. Hold JOULE, stake it, collect WATT every hour.No lockup, no fixed rate. Your share of all stake is your share of the hour.
  2. Every agent token trades against JOULE.Every agent trade is a JOULE trade, and every one of them burns and locks JOULE.
  3. A WATT is a dollar of any model.Behind one key your wallet signs. People spend it, agents spend it, and the usage feeds the next hour.
02

Quickstart

four steps, no sign-up
  1. 1
    Hold WATT

    Buy it with USDC one to one in the app, earn it by staking JOULE, or receive it from another wallet.

  2. 2
    Activate it

    The activate instruction burns WATT and names the wallet whose key will spend the balance.

  3. 3
    Sign for a key

    The wallet signs Joule API key | solana | epoch 0. The signature is the key.

  4. 4
    Call any model

    Send the key as a Bearer token to the OpenAI-compatible gateway.

bashCall any model
# any model, one key
curl https://api.joule.computer/v1/chat/completions \
  -H "Authorization: Bearer $JOULE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-sonnet-5.5","messages":[{"role":"user","content":"Plan the next task."}]}'
03

One WATT, one dollar of AI

buy_watt · activate

WATT is an SPL token with six decimals. Its only mint is the program, and the program mints it only against USDC that lands in its reserve. That is why a WATT is worth a dollar of models: the dollar is already there.

buy 1:1burnper callUSDCin your wallet1 WATThold, send, or sellAPI balanceon a wallet-signed keyAny modelcost + 10%USDC reserveHolds the USDC behind every WATT that exists and every reward still streaming.The operator can take only what was burned for usage.No instruction turns WATT back into USDC: it leaves circulation only when it is burned for AI.
Figure 2. The life of one WATT.
With WATT you canHow
Spend it on any modelActivate it into API balance and call the gateway with your wallet key
Fund an agentSend it to the agent's wallet, or activate it naming the agent's wallet as the beneficiary
Hold it or sell itIt is an ordinary token; nothing forces you to spend it
04

Staking

stake · fund_rewards · claim
100%of the margin on every AI call
50%of the launchpad's agent fees
0%to a team wallet

All of Joule's AI revenue goes to stakers. The gateway charges provider cost plus 10%, and that margin already sits in the program's reserve as USDC. Every hour the keeper moves it into the stakers' reward stream with fund_from_activated, which can point that USDC at stakers and nowhere else. Half of the launchpad's agent fees joins it. The stream pays out evenly over the hour and each stake collects in proportion to its size, so a stake that arrives a minute before the hour ends earns a minute of it.

textThe reward math
WATT to stakers this hour = AI usage margin + half the launchpad's agent fees
your WATT per hour        = WATT to stakers this hour × your stake ÷ all stake

reward rate   = WATT funded this hour ÷ 3,600 s
earned so far = your stake × (index now − index when you last claimed)
index         grows by reward rate ÷ all stake, every second
00251502753100460 WATThour 190 WATThour 245 WATThour 375 WATThour 42.70 WATTBars: WATT to all stakers each hour (left axis). Line: what a 1% stake has collected (right axis). Example inputs.
Figure 3. Rewards stream across each hour. Example inputs; real rewards follow real revenue and stake.
Your share of all stakePer hourPer dayPer 30 days
0.1%0.12 WATT2.88 WATT86.4 WATT
1%1.2 WATT28.8 WATT864 WATT
5%6 WATT144 WATT4,320 WATT

Example: 120 WATT to stakers every hour. WATT is a dollar of models, so 864 WATT a month is $864 of AI.

05

Launchpad

register_agent · harvest_agent

Agent tokens launch on Meteora's bonding curve with JOULE as the quote token, so buying one means buying JOULE first. Every trade pays a 2% fee in JOULE. Meteora keeps 20% of it and the rest reaches the program, which splits it the same way every time. Anyone can trigger a harvest; the keeper does it every five minutes.

Where it goesShareOf a $10,000 buyWhat it does
The agent's pool98% of the buy$9,800The trade itself. The pool's quote reserve is JOULE.
Meteora20% of the fee$40The exchange keeps its cut before the program sees the fee.
Staked for the agent42%$67.20JOULE locked in the program, unlocking over 30 days. It earns WATT like any stake.
The agent's own AI28%$44.80Converted to WATT in the agent's wallet. Its trades pay for its inference.
Burned15%$24JOULE destroyed in the same transaction as the harvest.
JOULE stakers15%$24Converted to WATT and streamed to every staker over the next hour.
Team wallet0%$0Nothing. Agent fees go to agents, burns and holders.

The agent's share is how a launchpad agent stays alive: the more it is traded, the bigger its AI budget. Its locked JOULE also earns WATT as a stake, and unlocks to the owner over 30 days. When an agent's curve has collected its graduation amount in JOULE, the token moves to a Meteora DAMM v2 pool.

06

JOULE supply

burns · locks · demand

JOULE is pulled from circulation three ways, and all three grow with use. Agent trades burn it on every harvest. Agents' shares are locked for 30 days. And because every dollar of AI revenue is paid to stakers, holding JOULE staked is how you earn it, so it sits in the vault instead of on the market.

If agent tokens trade $1,000,000 a dayPer dayPer 30 days
JOULE burned$2,400$72,000
JOULE locked for agents$6,720$201,600
WATT to stakers$2,400$72,000
WATT to agents$4,480$134,400

An illustration of the fixed splits at one volume, not a forecast. All AI usage margin goes to stakers on top.

Why it compounds

More agents mean more trades. More trades burn and lock more JOULE and pay stakers more WATT. More WATT gets spent on AI, and every dollar of margin on that usage is paid to stakers again, so staking pays more, so more JOULE is staked.

07

Wallet keys

ed25519 · base64url

The key is the wallet's signature of one fixed line. Ed25519 cannot recover a wallet from a signature, so the wallet travels with it.

jl-epoch-wallet, base58-signature, base64url
typescriptMake a key from any Solana keypair
import * as ed from '@noble/ed25519';

// the wallet signs one fixed line
const sig = await ed.signAsync(new TextEncoder().encode('Joule API key | solana | epoch 0'), secretKey32);
const key = `jl-0-${walletBase58}-${base64url(sig)}`;

Two agents given the same wallet share one balance. A new epoch, signed and used once, retires the keys of lower epochs.

08

Gateway

api.joule.computer
GET/v1/modelsEvery model with its price per token in WATT. No key needed.
POST/v1/chat/completionsOpenAI-compatible, streaming included. Charged after the answer at provider cost plus 10%. X-Joule-Balance carries the balance the request started from.
GET/v1/keyAvailable balance, usage and the rate limit.
POST/v1/activationsSend {"signature": "<activation transaction>"} to credit it. Each activation applies once.
POST/mcpModel Context Protocol over HTTP: models, balance, ask.

Each call is charged after the answer, from the usage the provider reports. A call that costs the provider $0.0070 is charged 0.0077 WATT. Streaming is charged from the final usage chunk.

No balance

The gateway answers 402 wallet_not_activated and names the wallet the key belongs to. Fields a provider should not get are dropped and named in X-Joule-Ignored-Parameters.

09

MCP

streamable http

Any client that speaks MCP over HTTP works the same way. The tools read and spend the balance of the key in the header.

Connect your AI client

Add the server once. Every session can use your models and balance.

Terminal
claude mcp add --transport http joule https://api.joule.computer/mcp \
  --header "Authorization: Bearer $JOULE_KEY"
10

Program

anchor · solana mainnet

One Anchor program holds every rule above. Its address is reserved and it deploys at launch: JoucmZMFevvc1D7DGpRigFYnS6N8Q41Bzaxhaf6kdRQ.

ConfigPDA ["config"]Keeper, mints, fee splits, pause flags and the stake reward index
WATT mintPDA ["watt"]Mint authority is the config. Supply grows only against USDC
ReservePDA ["reserve"]USDC behind every WATT and every reward still streaming
Stake vaultPDA ["vault"]All staked JOULE, holders' and agents'
HarvestPDA ["harvest"]Agent fees in JOULE, before they split
Fee claimerPDA ["fee"]Signs Meteora fee claims for agent pools and nothing else
StakePDA ["stake", "owner"]One wallet or one agent, and its reward checkpoint
AgentPDA ["agent", "pool"]Pool, creator, wallet, locked and unlocked stake, totals
WhoInstructionWhat it does
Holdersbuy_wattUSDC in, the same amount of WATT out, one to one
HoldersactivateBurns WATT and names the wallet whose key gets the balance
Holdersstake · unstakeMoves JOULE in and out of the vault. No lockup
HoldersclaimMints the WATT a stake has earned so far
Agentsregister_agentThe pool's creator turns a launchpad pool into an agent
Agentsset_agent_walletChanges where the agent's WATT lands
Agentswithdraw_agentThe owner takes JOULE that has unlocked
Agentsclaim_agent_rewardsPays the agent's staking WATT to its wallet
Anyoneharvest_agentClaims a pool’s fees through Meteora and splits them
Keeperbegin · finish_conversionSells waiting JOULE for USDC and mints WATT, both in one transaction
Keeperfund_from_activatedMoves the AI usage margin, already in the reserve, into the next hour of staker rewards
Anyonefund_rewardsAdds USDC that streams to stakers as WATT over the next hour
Operatorwithdraw_reserveTakes USDC only for provider costs: WATT burned for usage, minus the margin paid to stakers
Admininitialize · init_accountsOnly the upgrade authority, once
Adminset_params · set_roles · set_pausedSettings, each one an on-chain transaction anyone can read
Adminpropose_admin · accept_adminTwo-step handover of the admin key
11

Guarantees

enforced on chain

These are not promises on a page. Each one is a check in the program, and a transaction that breaks it fails.

01WATT is minted only against USDC in the reservebuy_watt mints exactly the USDC it receives; the mint authority is the config account
02No instruction turns WATT back into USDCWATT leaves circulation only through activate, which burns it
03The operator takes only the USDC behind burned WATTwithdraw_reserve fails with InsufficientActivated above that amount
04The AI margin can only go to stakersfund_from_activated is keeper-only and moves USDC inside the reserve into the reward stream; it has no destination account
05JOULE sold for WATT must bring the USDC back in the same transactionbegin_conversion fails with MissingFinish unless finish_conversion with a minimum amount follows in that transaction
06Unstake and claim cannot be pausedPause flags cover buying, activating, new stakes and agents; unstake and claim never read them
07Only a pool's creator can register it as an agentNotPoolCreator, checked against the Meteora pool account
08An agent's stake unlocks over 30 daysInsufficientUnlocked before then
09Nobody but the upgrade authority can initializeNotUpgradeAuthority, read from the program data account
10No team share of agent feesThe config's fee split sends 70% to agents and 30% to burns and stakers
12

FAQ

short answers
Is there a fixed rate?
No. Each hour's WATT is all of the AI margin plus half the launchpad's fees, and your part is your share of all stake. More usage and more agent trades mean more WATT.
Do I have to lock?
No. Stake and unstake any time. Rewards stream by the second, so you earn for exactly the time you were staked.
What do I do with WATT I don't use?
Hold it, send it to an agent's wallet, or sell it. It is an ordinary SPL token.
Can the team take the reserve?
Only the provider cost of WATT already burned for usage. The margin goes to stakers, and the program refuses more.
Where do prices come from?
Each model is charged at its provider list price through OpenRouter, plus 10%. The price list is public at /v1/models.
Does an agent need a human?
No. A wallet signs one line to get its key, and an agent token pays its own AI budget from its trading fees.