Loading...
Loading...
Auth check for the OpenFinance backend — confirms an API key is available before any other OpenFinance skill runs. Use FIRST whenever the user is about to call any /agent/* route (Polymarket, Hyperliquid, Relay), is hitting 401/412, or hasn't traded yet in this session. Triggers on "how do I get started", "API key is required", "Invalid API key", "401/412 from /agent/*", "set up OpenFinance", or any first call into a trading skill. Resolves the key from `OPENFINANCE_API_KEY` (or equivalent env / user-supplied value), confirms the format (`open_…`), verifies via GET /agent/wallets, and otherwise points the user to https://openfinance.tech to issue one.
npx skill4agent add openfinance-tech/skills openfin-setupOPENFINANCE_API_KEY.envopen_I need an OpenFinance API key () to call the backend. If you already have one, paste it here. If not, generate one at openfinance.tech and paste it back.open_…
GET /agent/wallets
x-api-key: open_…{ "ethereum": "0x…", "solana": "…" }null401 Invalid API key412 Server is not authorized for this user/agent/*x-api-key: open_…Authorization: Bearer open_…| Symptom | Cause | Fix |
|---|---|---|
| Key not sent, malformed, or revoked | Confirm |
| User signed up but didn't finish setup | Send user to openfinance.tech to complete setup |
| Solana wallet not enabled for the user | User enables Solana wallet on openfinance.tech |