Geksy for AI agents
Geksy is built so that an AI agent or a script can work with it on its own: everything you can do in the web app is in the API, errors say what to do next, and a person is needed only where the decision is theirs: granting access, paying by card, approving spending over a limit.
What agents get
Section titled “What agents get”| What | Where |
|---|---|
| Index and the whole documentation in one file | llms.txt, llms-full.txt, llms-full.ru.txt; every page also has a .md version |
| API schema with permissions, idempotency and errors of every operation | openapi.json (x-auth, x-required-permissions, x-idempotent, x-error-codes) |
| Ready-made call sequences | onboarding.arazzo.yaml |
| Plans and prices | pricing.json |
| Error codes with actions | GET https://api.geksy.cc/v1/errors and Error codes |
| Service status | GET https://api.geksy.cc/v1/status and the status page |
| The “geksy” Agent Skill | skills/geksy/SKILL.md or geksy skill --out <skills folder> |
Python SDK, the geksy CLI, the geksy-mcp MCP server | the geksy package, see Python SDK |
Programs should fetch these files from the API host: https://api.geksy.cc/llms.txt, /llms-full.txt,
/llms-full.ru.txt, /openapi.json, /onboarding.arazzo.yaml, /pricing.json, /skills/… — the same files. The
site is for people and may not answer clients without a browser.
1. Access
Section titled “1. Access”You already have a key (a person issued it in the web app: Settings, API keys). The first call is “who am I”:
curl -H "Authorization: Bearer ak_…" https://api.geksy.cc/v1/api-keys/selfThe response has the workspace (workspace_id), effective permissions, the key’s expiry, the plan, the requests per
minute limit, spending and spend limits.
No key and no person: sign up alone. A program gets its own sandbox workspace and API key without email or captcha: it solves a small proof-of-work task instead.
geksy signup --accept-terms --name my-agentWithout the CLI: GET https://api.geksy.cc/v1/agent/signup/challenge, find nonce such that
sha256(challenge:nonce) starts with difficulty zero bits, then POST /v1/agent/signup with name, pow and
accept_terms: true. The sandbox has 3 profiles and 30 requests per minute; it’s deleted at sandbox_until unless
it’s paid (any top-up or plan) or a person claims it. Give the person claim_url: they become the owner, the program
stays a member with the “AI agent” role and keeps its keys. A day before the deadline the sandbox.expiring event
arrives.
No key: sign in by code (OAuth device flow, RFC 8628). The program asks for access, a person approves the code in the web app and chooses the workspace, permissions, key lifetime and spend limit:
geksy login --device --name my-agent --scope api.use profile.launch profile.createWithout the CLI: POST https://api.geksy.cc/v1/oauth/device_authorization (client_id, scope), show the person
verification_uri_complete and user_code, then poll POST /v1/oauth/token every interval seconds until you get
access_token (that’s the API key).
An app for other people: OAuth 2.1. Authorization code with PKCE (S256), a public client without a secret. Server
metadata: https://api.geksy.cc/.well-known/oauth-authorization-server. The client_id is an https URL of a JSON
document describing your app (client_id, client_name, redirect_uris), so no registration is needed. The fallback
is POST /v1/oauth/register. On the sign-in page the person chooses the workspace, permissions, access term and spend
limit. The access_token lives an hour and works as an API key; the refresh_token changes on every refresh. The
person can revoke access in settings (App access); the app can call POST /v1/oauth/revoke.
Child keys for subtasks. A key with the “Issue child API keys” permission (keys.manage) issues keys no wider than
itself: fewer permissions, a short lifetime and their own spend limit. Revoking the parent revokes them; child keys
don’t raise the plan’s request limit. Rotate a key without downtime: POST /v1/api-keys/self/rotate (the old key
works 10 more minutes).
A ready role for an agent member is the “AI agent” template (POST /v1/workspaces/{ws_id}/roles/presets/ai_agent);
it’s a regular role whose permissions you can change.
2. Errors and retries
Section titled “2. Errors and retries”Every error is {"error": {code, params, message, details, action, doc_url}}. The action field says what to do:
retry (after retry_after seconds), topup, upgrade, human_approval, refetch, fix_request and others —
the full list is in Error codes. With Accept: application/problem+json the same
response comes in the RFC 9457 format.
- Creating and money
POSTrequests acceptIdempotency-Key: a repeat with the same key won’t create an object or charge twice. The SDK sets it for you. - The request limit is in the
RateLimitandRateLimit-Policyheaders; over it you get429withRetry-After.
3. Money
Section titled “3. Money”-
GET /v1/workspaces/{ws_id}/usage: plan limits and usage, next charge (with the “Plan and billing” permission), the balance with a “lasts N days” forecast, and the key’s spending. -
GET …/billing/quote?plan_code=…: the price before buying. -
POST …/billing/checkout: pay for a plan (payment_linkfor a person, orpay_currencyto pay crypto directly). -
POST …/proxy-shop/wallet/topup: top up the balance (it pays for Geksy proxies). -
x402: pay with your own wallet, no person needed (USDC on Base, x402 v2, scheme
exact):POST …/billing/x402/topup?amount=10→402 payment_required: thePAYMENT-REQUIREDheader (base64 JSON) anderror.detailscarry the requirementsaccepts[0]:network(eip155:8453),asset(USDC),payTo,amount(USDC units, 6 decimals),maxTimeoutSeconds,extra(name,versionof the EIP-712 domain).- Sign
TransferWithAuthorization(EIP-3009) for exactly this amount and recipient, with a randomnonceand avalidBeforedeadline; build aPaymentPayload(x402Version: 2,accepted,payload: {signature, authorization}). - Repeat the same request with
PAYMENT-SIGNATURE: <base64 PaymentPayload>. The200answer has the payment, the transaction hash and thePAYMENT-RESPONSEheader; the amount is on the balance. Repeating the same payment is safe: there is no second credit.409 payment_settling— the transfer is not in a block yet, repeat in a few seconds;402 payment_invalid— the payment is rejected, the reason is inparams.reason(amount, recipient, deadline, signature, balance).
Needs the “Plan and billing” permission; the key’s spend limit applies here too. You do not pay gas for the transfer.
-
When a person is needed (card payment, top-up), the response contains
payment_link, a short link valid 24 hours. Give it to a person; people with “Plan and billing” see the payment request in the web app. -
The key’s spend limit. If a purchase goes over the limit, you get
402 spend_limit_reachedwithapproval_id. The workspace owner sees the request in the web app (Plan and billing) and approves it; then repeat the same request with theX-Spend-Approval: <approval_id>header. An approval is valid 24 hours and once.
4. Profiles, proxies and launching
Section titled “4. Profiles, proxies and launching”-
Profiles, folders, tags, templates, proxies and Geksy proxies are in the cloud API (Cloud API).
-
The Geksy app on a computer launches the browser: its local API returns a CDP address that your automation code connects to (recipes). The cloud doesn’t run browsers.
-
On a server without a screen (Linux with Docker), Geksy runner works instead of the app — the same agent without a window: local API and CDP address, the Geksy engine inside, profiles open with a window on a virtual screen by default. It registers with an API key that has
device.register(plusprofile.launchto launch profiles andprofile.exportfor CDP), no password or email code; the server takes a seat in the plan’s Computers limit. Install as a systemd service:Окно терминала curl -fsSL https://dl.geksy.cc/releases/runner/install.sh | sudo GEKSY_API_KEY=ak_… GEKSY_WORKSPACE=<id> shThe script downloads the image from
dl.geksy.cc, checks the manifest signature and sha256, and starts the container; the local API ishttp://127.0.0.1:47800, the token isGEKSY_AGENT_TOKENin/etc/geksy/runner.env. Update with the same script and--update, remove with--uninstall(--purgealso deletes the data). Starting again with the same volume keeps the same device, with no new registration. -
Windows with no person signing in — a silent install of the app with the same kind of key (
device.register):Окно терминала GeksySetup-<version>.exe /VERYSILENT /SUPPRESSMSGBOXES /PROVISION=ak_… /WORKSPACE=<id>The installer registers the computer with the key (the device appears in Computers, with rights no wider than the key’s) and starts Geksy; start at Windows sign-in is on by default.
/PROVISIONFILE=<file>instead of/PROVISIONreads the key from a file, so it does not show in the process list or the setup log; in silent mode theGEKSY_API_KEY+GEKSY_WORKSPACEvariables work too. Also:/DEVICENAME=<name>,/NORUN— do not start after installing. The key is not stored on disk. Exit code10means registration failed (the app is installed, the reason is in%LOCALAPPDATA%\Geksy\logs\provision.log); retry with the same installer or"%LOCALAPPDATA%\Programs\Geksy\Geksy.exe" cli provision --workspace <id> --key-file <file>. Installing again with the same key keeps the same device. Get the installer on the Download page. -
AI clients that support MCP connect:
- the cloud remote MCP server
https://api.geksy.cc/mcpwithAuthorization: Bearer ak_…(Streamable HTTP; clients that support OAuth sign in by themselves, the address is enough): account and usage, plans and payments, profiles and templates, proxies, computers, support, webhooks; - the local
geksy-mcpon the computer with the app, which adds page actions: a snapshot with element refs, click, type, scroll, wait, extract data, tabs, and asking a person.
Client configurations and the tool list are in AI via MCP.
- the cloud remote MCP server
5. Events and webhooks
Section titled “5. Events and webhooks”Instead of polling, subscribe to events: POST /v1/workspaces/{ws_id}/webhooks with url (public https) and events
(types or patterns: billing.*, profile.*). The catalog is GET /v1/webhook-events: payments and low balance,
plan.limit_reached, spend_limit.reached, payment.link_requested, Geksy proxy notices, profiles, workspace
deletion. Deliveries are signed per Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature), retried
for about an hour, and logged for 7 days. Verify the signature in Python with geksy.verify_webhook(secret, headers, body). Needs the “Workspace settings” permission.
6. Problems
Section titled “6. Problems”geksy doctor: a self-check of versions, cloud reachability, what the key can do, limits, and the app on this computer. No secrets are collected.geksy support create --subject … --body …(orPOST /v1/support/tickets): a support ticket with thegeksy doctoroutput attached. With an API key it needs the “Contact support with an API key” permission (support.write).
7. Leaving
Section titled “7. Leaving”GET /v1/workspaces/{ws_id}/export: all workspace data as one JSON; browser data as an archive of each profile.POST …/billing/cancel: cancel the subscription at the end of the paid period (…/resumeto change your mind).POST /v1/workspaces/{ws_id}/deletion: delete the workspace in 14 days;DELETE …/deletioncancels. Refunds go through support.
Where a person is needed
Section titled “Where a person is needed”| Step | Why |
|---|---|
| Keeping a sandbox after its deadline | a person claims it via claim_url, or it is paid (the program can top up itself) |
| Granting access by code | the person decides which permissions, lifetime and limits the program gets |
| Card payment, top-up | a person pays via payment_link |
| Spending over the key’s limit | the workspace owner approves it |
| Launching a browser | it needs the Geksy app on a computer (Windows or Linux) with someone signed in |