Guide

Everything from installing the wallet to giving an AI agent an allowance. Qythera runs on Robinhood Chain Testnet, and on mainnet as a beta. The contracts are not audited: on mainnet, keep at most 0.05 ETH in a vault.

Getting started

Five steps from nothing to a vault that answers only to your post-quantum key. Use testnet ETH: everything here runs on Robinhood Chain Testnet.

  1. Install the walletOne command, a download, or open it in the browser.
  2. Create a walletPick a password and save the backup file.
  3. Fund the gas accountSend it testnet ETH from the faucet; about 0.01 ETH is plenty.
  4. Create your vaultThe wallet deploys it and registers your ML-DSA-65 key.
  5. Send from the vaultSign a transfer on your computer and watch the chain check it.

Install

One command installs both parts of Qythera: the terminal agent as the qythera command, and the wallet, a single HTML file that's the same on every system. You can also download either from the download section.

macOS, Linuxcurl -fsSL /install.sh | sh
Windows PowerShellirm /install.ps1 | iex
SystemInstalls toOpens with
macOSAgent: ~/.local/bin/qythera
Wallet: ~/Qythera/Qythera.html
qythera; the wallet with qythera wallet. Not yet tested on a Mac.
LinuxAgent: ~/.local/bin/qythera
Wallet: ~/Qythera/Qythera.html
qythera; the wallet with qythera wallet, or Qythera in the app menu
WindowsAgent: %LOCALAPPDATA%\Qythera\bin\qythera.exe
Wallet: %LOCALAPPDATA%\Qythera\Qythera.html
qythera in a new terminal; the wallet with qythera wallet, or Qythera in the Start menu

Both installers check every download against SHA256SUMS and install nothing if one doesn't match. They need no admin rights. If ~/.local/bin isn't on your PATH, the macOS and Linux installer adds it to your shell's startup file; the Windows installer adds the bin folder to your user PATH. Open a new terminal afterwards. You can also skip installing and open the wallet in your browser.

Use Chrome or Edge. Those are the browsers the wallet has been tested in; Safari and Firefox haven't been tried yet.

Create a wallet

  1. Open the wallet and choose Create a wallet.
  2. Pick a password of at least 10 characters. It encrypts your keys on this computer and in the backup file. Nobody can reset it.
  3. Confirm that losing both this computer and the backup file, or forgetting the password, means losing the funds. Then choose Create wallet.
  4. Choose Download backup when the wallet asks, and keep the file somewhere other than this computer.

The wallet now holds two keys: your ML-DSA-65 owner key, which controls the vault, and an ordinary gas account that only pays network fees.

Fund the gas account

Copy the Gas account address and send it testnet ETH from the Robinhood Chain faucet. About 0.01 ETH covers creating a vault and many actions after it.

The gas account can't move vault funds. If someone gets its key, they can spend its ETH on fees and nothing else.

Create your vault

Choose Create vault. The wallet deploys your vault and registers your ML-DSA-65 key so each later action needs about 3.8M gas instead of 9.3M. On a network without a verifier yet, it deploys the shared verifier too, about 0.002 testnet ETH in total.

If a verifier is already deployed, open Use a verifier that is already deployed and paste its MLDSAVerifier address before you start.

Setup takes several transactions. If it stops halfway, choose Create vault again and it carries on from where it was.

Download a fresh backup once the vault exists, so the file includes the vault address.

To fund the vault, send ETH or USDG to the address shown under Vault. View on explorer opens it on the testnet explorer.

Send from the vault

  1. Under Send from vault, enter the receiving address and the amount, and pick ETH or USDG.
  2. Choose Sign and send. Your ML-DSA-65 key signs on this computer and the gas account submits the transaction.

The signature covers the chain, this vault, a nonce, the gas the call gets and a deadline 30 minutes out. Nobody who relays it can change the amount, the receiver or the gas, or reuse it later. The wallet computes what it signs itself instead of trusting the RPC node.

Agent allowance

An allowance lets an AI agent's ordinary key send one asset from the vault, up to a daily limit, until an end date. The agent never sees your owner key.

  1. Under Agent allowance, enter the agent's address, the daily limit, the asset (USDG or ETH) and how many days it lasts (1 to 365).
  2. Choose Sign and set allowance.
  3. To stop it, choose Revoke allowance. One owner signature ends it right away.

The limit resets each day at midnight UTC, so around midnight an agent can spend up to two days' limit within a few minutes. A vault has one allowance at a time; setting a new one replaces the old.

Rotate the owner key

Rotating replaces your ML-DSA-65 owner key with a new one. The vault keeps its address, its funds and its agent allowance; signatures from the old key stop working. Do it if you think the key, or a backup file and its password, may have leaked.

  1. Under Owner key, enter your password and choose Rotate owner key.
  2. The wallet makes a new key and saves it, encrypted, before anything is sent. Your current key then signs the switch: about 4.2M gas.
  3. The wallet registers the new key in two more transactions, so later actions stay at about 3.8M gas instead of 9.3M.
  4. Choose Download backup straight away.

Backup files saved before the rotation hold the old key, which no longer controls the vault. Keep the new backup and delete the old ones.

If the wallet closes halfway, nothing is lost. The next time you unlock it, it asks the vault which key it answers to and keeps that one. If registering stops, the button reads Finish registering the new key.

Backup and restore

The backup file holds your keys encrypted with your password, plus your vault address. Download backup under Backup and settings saves a new copy at any time.

To restore on another computer, open the wallet and choose Restore from backup, pick the file and enter its password.

Settings

  • RPC URL for chain 46630: use your own Robinhood Chain testnet RPC instead of the public one.
  • Lock: closes the wallet until you enter the password again.
  • Remove from this device: deletes the keys from this browser. Only do it with a saved backup file whose password you know.

The terminal agent

Open a terminal in a project folder and type qythera. Ask for what you want: a new page, a fix, a refactor, a test run. The agent reads and searches the files in that folder, edits them, and runs commands, using a model from the provider you pick with your own key.

Start in a foldercd my-project && qythera
One prompt, then exitqythera "add a dark mode toggle to index.html"

On the first run it lists the providers and how to add a key. Nothing is sent anywhere until you choose a model and type a prompt.

Models and keys

ProviderKeyModel listWithout a key
AnthropicANTHROPIC_API_KEYLive; default claude-opus-5-5Shared key
Google GeminiGEMINI_API_KEYLive; default gemini-4-carbonNeeds your key
NVIDIANVIDIA_API_KEYLive; default nvidia/nemotron-3.5-super-vl-120b-a12bShared key
OpenAIOPENAI_API_KEYLive; default gpt-6.2-astraNeeds your key
OpenRouterOPENROUTER_API_KEYLive; you pick oneNeeds your key
OllamaNoneThe models you've pulled; runs on your computerFree, local
CustomOptionalFrom your OpenAI-compatible server (LM Studio, llama.cpp, vLLM)Your server

Add a key with /key <provider> <key>, or set the environment variable, which wins over a saved key. Then choose a model with /model <provider> (lists the models live and picks the default) or /model <provider>:<model>.

A fallback model, set with /fallback <provider>:<model>, takes over when the main one is overloaded, rate limited or out of credit; the agent tells you when it switches. With your own key you pay your provider directly and requests go straight to it; Qythera adds no fee.

The shared key

Without a key, Anthropic and NVIDIA run on Qythera's shared key, through our server: free, 20 requests per person and 200 for everyone per day, default model only, and output capped at 8,192 tokens per reply. The agent starts on NVIDIA's shared model when you have no key at all; /providers shows which providers are on the shared key. When the day's requests are used up, the agent says so: add your own key with /key, or wait for the next day (UTC). A long conversation can be too big for the shared key; /clear starts a new one.

Models that can't call tools can still chat, but can't read or change files. The agent says so when it happens.

Commands

TypeTo
/modelSee the model in use; /model <provider> or /model <provider>:<model> to change it
/providersList the providers and which have a key; /providers custom <url> sets your own server
/fallbackSet the fallback model, or /fallback off
/key <provider> <key>Save a key on this computer
/auto on, /auto offLet file changes run without asking, or ask again
/clearStart a new conversation
/help, /exitList the commands, or quit
qythera walletOpen the wallet (from the shell, not inside the agent)

What it may do

  • Files: only inside the folder you started it in. Paths that lead outside, including through links, are refused.
  • Changes: every write or edit shows a diff and waits for y, n, or a (yes, and stop asking for file changes this session and next). Turn asking back on with /auto off.
  • Commands: always ask first, even with /auto on. A command you approve runs with your normal user rights, in PowerShell on Windows and sh elsewhere, and stops after 120 seconds.
  • Stopping: Ctrl+C cancels the current step and keeps the conversation. Ctrl+C at an empty prompt quits.
  • Long output: files and command output over 30,000 characters are cut, with a note, before they go to the model.

There's no sandbox beyond these prompts. Read each command before you approve it.

Where its data lives

  • Settings and saved keys: ~/.qythera/config.json (Windows: %LOCALAPPDATA%\Qythera\config.json), readable only by you on macOS and Linux.
  • Conversation logs: one file per session in the sessions folder next to it. Keys are removed before anything is written.
  • Sent over the network: your prompts, the conversation so far, and the files and command output the agent reads, to the provider you picked, with your key. Nothing goes to Qythera.

Pay x402 APIs from an agent

payingFetch is a fetch for agents that answers HTTP 402 by paying in USDG. When the agent's own balance is short, it draws only the difference from the vault through its allowance, and the vault enforces the daily limit on-chain.

import { createWalletClient, http, publicActions } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { payingFetch } from './payingFetch.mjs';

const wallet = createWalletClient({ account: privateKeyToAccount(AGENT_KEY), chain, transport: http(RPC) }).extend(publicActions);
const pay = payingFetch({
  wallet,
  vault: VAULT,                                        // your vault address
  asset: '0x7E955252E15c84f5768B83c41a71F9eba181802F', // USDG on testnet
  network: 'eip155:46630',
  maxPerPayment: 10_000n,                              // 0.01 USDG (6 decimals)
  payTo: [PAY_TO],                                     // optional allow-list of receivers
});
const res = await pay(API_URL);

It refuses offers above maxPerPayment or to receivers outside payTo before any money moves. Those two checks run in the agent; if the agent itself is compromised, the on-chain daily limit is what's left.

An end-to-end test runs the whole flow on a local fork of Robinhood Chain testnet, so nothing is sent to the real network: the agent pays twice, the third payment is refused by the daily limit, and an unknown receiver is refused up front.

Deploy from source

Deploy the contracts yourself with Foundry and Node instead of the wallet. These steps run in PowerShell from the Qythera source folder, which holds the contracts and the signer. Use a new wallet made only for testnet.

1. Prepare

$forge = "$env:USERPROFILE\.foundry\bin\forge.exe"; $cast = "$env:USERPROFILE\.foundry\bin\cast.exe"
$rpc = "https://rpc.testnet.chain.robinhood.com/rpc"
cd signer; npm install; cd ..

2. Import the deployer key

Fund it with at least 0.01 testnet ETH from the faucet. Foundry asks for the private key and a password and keeps them in an encrypted keystore.

& $cast wallet import qvault-deployer --interactive

3. Make the ML-DSA-65 owner key

node signer/sign.mjs new | Set-Content owner.seed -Encoding ascii
$env:OWNER_SEED = (Get-Content owner.seed)
$env:OWNER_PK = node signer/sign.mjs pk $env:OWNER_SEED

Whoever holds owner.seed controls the vault. A plain file is fine for testnet only.

4. Deploy

& $forge script script/DeployQVault.s.sol --rpc-url $rpc --account qvault-deployer --broadcast

Note the MLDSAVerifier and QVault addresses it prints. For a second vault, set $env:VERIFIER to the verifier address first so it's reused.

5. Fund the vault and send a signed transfer

$env:VAULT = "<vault address>"
& $cast send $env:VAULT --value 0.002ether --account qvault-deployer --rpc-url $rpc
$env:TO = "<receiver>"; $env:VALUE = "1000000000000000"
& $forge script script/ExecuteQVault.s.sol --rpc-url $rpc --account qvault-deployer --broadcast

The deployer only pays gas; the ML-DSA-65 signature from OWNER_SEED is what authorises the transfer. Check the result on the testnet explorer.

On testnet, eth_estimateGas for one signed action can show about 23.8M: the testnet charges L1 data per byte, and the signature is 3.3 KB. Execution itself is about 3.8M.

Network details

Qythera runs on Robinhood Chain Testnet and, as an unaudited beta, on mainnet. You pick the network when you create a wallet, and it refuses an RPC for any other chain. During the beta the wallet warns when a vault holds more than 0.05 ETH and allows an agent allowance in ETH only, up to 0.05 ETH a day. The contract itself doesn't enforce the cap.

TestnetMainnet
QytheraLive now: wallet, vault, key factory, verifierBeta, unaudited: at most 0.05 ETH per vault. No shared verifier yet, so creating a vault also deploys your own key factory and verifier. $QYTH is planned here.
Chain ID466304663
RPChttps://rpc.testnet.chain.robinhood.com/rpchttps://rpc.mainnet.chain.robinhood.com
Explorerexplorer.testnet.chain.robinhood.comrobinhoodchain.blockscout.com
ETH for gasFree from the faucetReal ETH
USDG used by the wallet0x7E955252E15c84f5768B83c41a71F9eba181802FNot used yet

Your data and privacy

Qythera has no accounts and no server that holds your keys. Everything the wallet knows stays in the browser you use it in.

  • On this device: your owner key and gas key, encrypted with your password (scrypt, then AES-256-GCM), plus your vault address and recent activity. They live in this browser's storage for the page you opened the wallet from, so a wallet opened from another folder, or from the website, has its own separate storage.
  • Sent over the network: only reads and transactions, to the RPC set under Settings. Transactions are public on Robinhood Chain like any other.
  • In a backup file: the same encrypted keys and your vault address. Anyone with the file still needs the password.
  • The website: no sign-up and no analytics. Its pages load fonts from Google Fonts, and the cost calculator on the home page asks Robinhood Chain's public mainnet RPC for the gas price. The wallet file loads nothing from anywhere except the RPC.
  • The terminal agent: sends your prompts and the files it reads to the model provider you choose, with your key. See where its data lives.
  • Deleting it: Remove from this device under Backup and settings erases the keys from this browser. Keep a backup first: without it the vault can't be reached again.

Troubleshooting

What the wallet's messages mean and what to do about them.

It saysWhat to do
Wrong password for this wallet.Check the password; nobody can reset it. If you've forgotten it, the keys can't be decrypted.
The gas account is empty, or has too little ETH to pay the fee.Send testnet ETH from the faucet to the Gas account address, then try again.
Network unreachable, or the RPC is on the wrong chain.Check your connection. Under Network RPC, make sure the URL is for chain 46630, or save the public one again.
There is no vault at this address on this network.The RPC points at another network or a local fork. Save the public RPC again.
The signed action expired before it was mined.The network took longer than 30 minutes. Send it again; the expired signature can't be used.
The vault rejected the signature.This wallet holds a key the vault no longer answers to, usually a backup from before a key rotation. Restore the newest backup.
This vault belongs to a different key.The vault saved in this wallet answers to another key, for example after restoring a backup from before a key rotation. Restore the newest backup.
That is over the agent's daily limit.The agent has spent its allowance for today (UTC). Raise the limit, or wait for the next day.
The vault ran the action, but the receiving contract rejected it.The receiving contract refused the call, so nothing moved. Check the address and the amount.
This file is not a Qythera backup.Pick the .json file the wallet saved with Download backup.
A key rotation was left unfinished, and the network can't be reached to check it.Reconnect and unlock again. The wallet keeps both keys until it can ask the vault which one it answers to.

Installing

  • "Key for … was refused." The provider rejected the key. Set it again with /key <provider> <key>, or check the environment variable, which wins over a saved key.
  • "Ollama isn't running at http://localhost:11434." Start it with ollama serve, then /model ollama again.
  • qythera: command not found. Open a new terminal so it picks up the PATH change, or run it by its full path, shown at the end of the install.
  • "The download doesn't match its checksum. Nothing was installed." The file was cut short or changed on the way. Run the command again.
  • Chromium on Ubuntu can't open the file. The Snap version of Chromium can't read hidden folders. Keep the wallet in a normal folder in your home directory; the installer uses ~/Qythera for that reason.
  • Windows says the script can't run. Use the irm … | iex command as shown; it runs in memory and needs no change to the execution policy.