---
name: geksy
description: Work with Geksy, an antidetect browser service — browser profiles with a consistent Windows fingerprint, per-profile proxies, cloud sync and team workspaces — through its cloud API, the `geksy` CLI and Python SDK, and the Geksy app on a computer. Use when a task involves Geksy profiles, proxies, API keys, billing, usage or support.
---

# Geksy

Geksy keeps browser profiles in the cloud (fingerprint, proxy, cookies and site data) and runs them on a computer
in the Geksy app. The cloud API manages workspaces, profiles, proxies, keys and money; the app launches browsers and
gives a CDP address for automation. The cloud never runs browsers.

- API: `https://api.geksy.cc/v1`, header `Authorization: Bearer ak_…` (workspace API key).
- Schema: `https://api.geksy.cc/openapi.json` — each operation has `x-auth`, `x-required-permissions`,
  `x-idempotent`, `x-error-codes`. Ready call sequences: `https://api.geksy.cc/onboarding.arazzo.yaml`. Docs index:
  `https://api.geksy.cc/llms.txt`. Fetch these files from `api.geksy.cc`: the site `geksy.cc` is for people and may
  refuse non-browser clients.
- Python: `pip install geksy` → `geksy.Cloud`, `geksy.Agent`, CLI `geksy`, MCP server `geksy-mcp`.
- Remote MCP: `https://api.geksy.cc/mcp` (Bearer API key or OAuth token; MCP clients with OAuth sign in by
  themselves) — cloud tools; page actions (`geksy_page_*`) are in the local `geksy-mcp`.

## 1. Get access

- Have a key? `GET /v1/api-keys/self` (CLI `geksy whoami`) → `workspace_id`, effective `permissions`, expiry, plan,
  rate limit, spend and spend limits. Start here.
- No key and no person around? Sign up alone: `geksy signup --accept-terms --name my-agent` (or
  `GET /v1/agent/signup/challenge` → solve the proof-of-work → `POST /v1/agent/signup`). You get a sandbox workspace
  (3 profiles, 30 rpm, deleted after `sandbox_until` unless paid) and `claim_url` — give it to a person so they can
  own the workspace; you stay a member with your keys. Topping up or buying a plan removes the deadline.
- No key? Ask a person to approve a code: `geksy login --device` (or `POST /v1/oauth/device_authorization`, then poll
  `POST /v1/oauth/token` every `interval` seconds). Show the person `verification_uri_complete` and `user_code`;
  they choose the workspace, permissions, lifetime and spend limit.
- Building an app for other people? Use OAuth 2.1 (authorization code + PKCE S256, public client): metadata at
  `https://api.geksy.cc/.well-known/oauth-authorization-server`; `client_id` = https URL of your client metadata JSON
  (or `POST /v1/oauth/register`). Tokens last 1 hour; refresh tokens rotate on every use.
- For a subtask, issue a narrower short-lived child key (needs `keys.manage`):
  `geksy keys create --name sub --scope api.use profile.launch --minutes 60`. Revoking the parent revokes it.
- Rotate without downtime: `geksy keys rotate` (the old key works 10 more minutes).

## 2. Read errors — they say what to do

Every error is `{"error": {code, params, message, details, action, doc_url}}`. Follow `action.kind`:

| kind | do |
|---|---|
| `retry` | wait `action.retry_after` seconds (also `Retry-After`), repeat the same request |
| `topup` / `topup_proxy_wallet` | money is short: call `action.api` or hand a person the payment link |
| `upgrade` / `renew` | plan limit or subscription: see `GET …/billing/quote`, then checkout |
| `human_approval` | spend limit of the key: a person approves `params.approval_id`, then repeat with `X-Spend-Approval: <id>` |
| `refetch` | object changed: take `details.current`, apply the change again |
| `fix_request` | fix fields in `details.fields` |
| `use_desktop_app` | only the Geksy app on a computer can do this |

Never retry `401`/`403` blindly. Use `Idempotency-Key` on creating and money POSTs (the SDK does it) — repeating
with the same key cannot buy twice. Watch `RateLimit` / `RateLimit-Policy` headers.

## 3. Money

- `geksy usage` (`GET …/usage`): plan limits and usage, next charge (with `billing.manage`), balance,
  `days_left` forecast, this key's spend.
- Price first: `geksy billing quote start` (`GET …/billing/quote`) → `total_minor`.
- Pay for a plan: `geksy billing checkout start` → `payment_link` (valid 24 h) — give it to a person; do not try to
  pay on payment pages yourself. A plan can also be paid from the balance
  (`"provider": "balance"` in the checkout body).
- Balance (pays Geksy proxies and plans): `geksy billing topup --amount 20` (`POST …/proxy-shop/wallet/topup`) →
  `payment_link` for a person.
- Over the key's spend limit you get `402 spend_limit_reached` — tell the person what you want to buy and why, wait
  for approval, then repeat the same request with the approval id.

## 4. Profiles, proxies, launching

- `geksy profiles list`, `geksy profiles create --name shop-01`; templates and bulk creation are in the API.
- Your own proxy: `POST …/proxies/import {"text": "host:port:user:pass"}`; Geksy proxies: `catalog` → `buy` → set
  `proxy_id` on the profile.
- Launch on a computer with the Geksy app: `geksy profiles start <id>`; connect your automation over CDP through the
  permanent address (`Agent().connect(ws, id).context(pw)` → the profile's own context, or `Agent().cdp_token(ws, id)`
  → `http_endpoint` + `headers`; it hides the connected client from the
  page, the direct `cdp_http` doesn't) to the already running browser and use its existing context (a new context has no cookies or fingerprint
  settings). Do not override user agent, viewport or timezone — the profile sets them. Stop with
  `geksy profiles stop <id>` so data syncs.
- Launch state is `run_state` on each profile: `stopped`, `starting`, `running`, `stopping` (still saving data),
  `lost` (the app stopped responding), `crashed` / `failed` (why — in `last_run.code`). While `starting`/`stopping`,
  changing proxy or fingerprint, deleting and stopping answer `409 profile_transitioning` — retry in a few seconds;
  `Cloud().wait_profile_state(ws, id)` waits until it is closed. Webhook event: `profile.state`.
- Over CDP, page console events and Playwright `exposeBinding`/`exposeFunction` don't work (the engine keeps the page
  debugging mode off). Read page messages through your own buffer (`add_init_script` wraps `console`, `evaluate`
  collects it) or the local API `eval` action; instead of page→script calls, poll with `evaluate` or use the
  `wait_for` / `extract` actions. Selenium: direct `cdp_http` address, ChromeDriver of the engine's major version.

## 5. Events instead of polling

Subscribe once: `geksy webhooks create --url https://… --events "billing.*" spend_limit.reached` (needs
`workspace.settings`). Deliveries are signed per Standard Webhooks; verify with `geksy.verify_webhook(secret, headers,
body)` and deduplicate by `webhook-id`. Catalog: `geksy webhooks events`.

## 6. Problems and leaving

- `geksy status` — is the service up; `geksy doctor` — self-check.
- `geksy support create --subject … --body …` attaches `geksy doctor` output (no secrets) — needs `support.write`.
- Leaving: `GET …/workspaces/{ws}/export` (all data as JSON), `POST …/billing/cancel` (end of period),
  `POST …/workspaces/{ws}/deletion` (deleted after an undo period; `DELETE …/deletion` cancels).

## Rules

- Act only within the permissions and spend limits you were given; ask the person before spending money.
- Never print or store API keys, proxy passwords or cookies in logs, tickets or chat.
- Prefer `--json` output of the CLI when you parse results; exit codes: 0 ok, 2 bad input, 3 not signed in / no
  permission, 4 not found, 5 needs money or approval, 6 try later, 7 conflict.
