Skip to content

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.

WhatWhere
Index and the whole documentation in one filellms.txt, llms-full.txt, llms-full.ru.txt; every page also has a .md version
API schema with permissions, idempotency and errors of every operationopenapi.json (x-auth, x-required-permissions, x-idempotent, x-error-codes)
Ready-made call sequencesonboarding.arazzo.yaml
Plans and pricespricing.json
Error codes with actionsGET https://api.geksy.cc/v1/errors and Error codes
Service statusGET https://api.geksy.cc/v1/status and the status page
The “geksy” Agent Skillskills/geksy/SKILL.md or geksy skill --out <skills folder>
Python SDK, the geksy CLI, the geksy-mcp MCP serverthe 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.

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/self

The 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-agent

Without 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.create

Without 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.

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 POST requests accept Idempotency-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 RateLimit and RateLimit-Policy headers; over it you get 429 with Retry-After.
  • 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_link for a person, or pay_currency to 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):

    1. POST …/billing/x402/topup?amount=10 → 402 payment_required: the PAYMENT-REQUIRED header (base64 JSON) and error.details carry the requirements accepts[0]: network (eip155:8453), asset (USDC), payTo, amount (USDC units, 6 decimals), maxTimeoutSeconds, extra (name, version of the EIP-712 domain).
    2. Sign TransferWithAuthorization (EIP-3009) for exactly this amount and recipient, with a random nonce and a validBefore deadline; build a PaymentPayload (x402Version: 2, accepted, payload: {signature, authorization}).
    3. Repeat the same request with PAYMENT-SIGNATURE: <base64 PaymentPayload>. The 200 answer has the payment, the transaction hash and the PAYMENT-RESPONSE header; 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 in params.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_reached with approval_id. The workspace owner sees the request in the web app (Plan and billing) and approves it; then repeat the same request with the X-Spend-Approval: <approval_id> header. An approval is valid 24 hours and once.

  • 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 (plus profile.launch to launch profiles and profile.export for 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> sh

    The script downloads the image from dl.geksy.cc, checks the manifest signature and sha256, and starts the container; the local API is http://127.0.0.1:47800, the token is GEKSY_AGENT_TOKEN in /etc/geksy/runner.env. Update with the same script and --update, remove with --uninstall (--purge also 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 /PROVISION reads the key from a file, so it does not show in the process list or the setup log; in silent mode the GEKSY_API_KEY + GEKSY_WORKSPACE variables work too. Also: /DEVICENAME=<name>, /NORUN — do not start after installing. The key is not stored on disk. Exit code 10 means 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/mcp with Authorization: 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-mcp on 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.

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.

  • 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 … (or POST /v1/support/tickets): a support ticket with the geksy doctor output attached. With an API key it needs the “Contact support with an API key” permission (support.write).
  • 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 (…/resume to change your mind).
  • POST /v1/workspaces/{ws_id}/deletion: delete the workspace in 14 days; DELETE …/deletion cancels. Refunds go through support.
StepWhy
Keeping a sandbox after its deadlinea person claims it via claim_url, or it is paid (the program can top up itself)
Granting access by codethe person decides which permissions, lifetime and limits the program gets
Card payment, top-upa person pays via payment_link
Spending over the key’s limitthe workspace owner approves it
Launching a browserit needs the Geksy app on a computer (Windows or Linux) with someone signed in