SDKs and CLI
You do not need an SDK. The official OpenAI clients work. The WISPR packages add attestation checks, receipt verification and the account commands.
Install and call
pip install wispr from wispr import Wispr w = Wispr(api_key="wispr_sk_...") # pins the enclave measurement r = w.chat([{"role": "user", "content": "Summarise this agreement and flag the risks."}], web_search=True, plan="fundamentals") print(r["choices"][0]["message"]["content"], r["wispr"]["cost_usd"], w.verify_receipt(r["wispr"]))
npm i @wispr/sdk import { Wispr } from "@wispr/sdk"; const w = new Wispr({ apiKey: "wispr_sk_..." }); const r = await w.chat({ model: "auto", messages: [{ role: "user", content: "Summarise this agreement and flag the risks." }], read_links: true }, { plan: "fundamentals" }); console.log(r.choices[0].message.content, r.wispr.cost_usd, await w.verifyReceipt(r.wispr));
npx wispr login # email, or username + phrase (never sent) npx wispr keys create --name laptop --budget 25 --cap 0.5 npx wispr ask "Explain the interactions between these three medications." npx wispr ask --web --effort high --plan split --file notes.md "What is missing from these notes?" npx wispr image --model chroma --enhance "a lighthouse at dusk, film grain" npx wispr speak --model kokoro-tts --out hello.mp3 "Read this back to me." npx wispr attest # enclave measurement vs published build npx wispr receipt verify receipt.json npx wispr topup 25 --coin usdc
What the packages add
- Attestation
- The SDK pins the published enclave measurement and refuses a different one with
424 attestation_mismatch. - Receipts
- the receipt is the
wisprobject on every response;verify_receipt(Python) andverifyReceipt(Node) check the signature and the published build. - Account
- Keys, top ups, deposit notes and staking from the terminal.
CLI commands
| Command | Does | Page |
|---|---|---|
npx wispr login | email, or username + phrase (never sent) | Accounts and keys |
npx wispr keys create --name --budget --cap | a key with a monthly budget and a per request cap | Keys |
npx wispr keys list · keys revoke <key> | list and revoke keys | Keys |
npx wispr ask [--model] [--file] "<prompt>" | one request from the terminal | Security audits |
npx wispr attest | enclave measurement vs published build | Verify the enclave |
npx wispr receipt verify <file> | signature, measurement, published build | Verify one |
npx wispr topup <amount> --coin <coin> | top up the balance | Payments |
npx wispr deposit <amount> --from <wallet> · redeem <note> | fund with a deposit note (ships with the pool) | Deposit notes |
npx wispr stake <amount> --days <n> --from <wallet> | stake $WISPR for fee free top ups (ships with the contract) | Staking |
npx wispr account | balance, stake, fee rate, spend by day | Staking |
On the roadmap
The MCP server is built: wispr_ask and wispr_image give any MCP client the catalogue, sharding and receipts. Go and Rust SDKs are on the roadmap. Planned