# API overview

> Which APIs Geksy provides and which one to use for your task.

Source: https://geksy.cc/en/docs/api/

Geksy has two APIs that complement each other.

| | Local API | Cloud API |
|---|---|---|
| Where it runs | in the app on your PC, `127.0.0.1` only | `https://api.geksy.cc/v1` |
| What it's for | launching and closing profiles, getting CDP addresses | managing the workspace: profiles, folders, proxies, extensions, members, audit log |
| Authentication | local API token | member API key `ak_…` |
| Clients | Playwright, Puppeteer, Selenium, Python SDK | any HTTP client, Python SDK |

A typical workflow: create profiles and assign proxies through the cloud API, then on the work PC launch the
profiles you need through the local API and connect to them with Playwright or Puppeteer.

## Access

* The API is available on plans that include it (see [Pricing](https://geksy.cc/en/pricing/)).
* The member needs the `api.use` permission.
* An API key works only in its own workspace and sees exactly what its owner sees. If the owner loses permissions,
  the key loses them too.

## Sections

* [Local API and CDP](https://geksy.cc/en/docs/api/local/): launching profiles and connecting to the browser.
* [Connect your browser code](https://geksy.cc/en/docs/api/connect/): the permanent CDP address of a profile and recipes with tested versions.
* [Playwright, Puppeteer, Selenium](https://geksy.cc/en/docs/api/playwright/): ready-to-use examples.
* [AI via MCP](https://geksy.cc/en/docs/api/mcp/): the remote MCP and the local `geksy-mcp` for AI clients.
* [Python SDK](https://geksy.cc/en/docs/api/sdk/): launching profiles and working with the cloud from Python.
* [Cloud API](https://geksy.cc/en/docs/api/cloud/): workspace resources and real-time events.
* [Error codes](https://geksy.cc/en/docs/api/errors/): what each code means and what to do.

## For programs and AI agents

Everything a program or an AI agent needs is available in machine-readable form (details: [Geksy for AI agents](https://geksy.cc/en/docs/api/ai-agents/)):

* [`llms.txt`](https://geksy.cc/llms.txt): what Geksy is and where things are; [`llms-full.txt`](https://geksy.cc/llms-full.txt) and
  [`llms-full.ru.txt`](https://geksy.cc/llms-full.ru.txt): the whole documentation in one file. Every docs page has a markdown version:
  add `.md` to its address, for example [`/en/docs/api.md`](https://geksy.cc/en/docs/api.md).
* [`openapi.json`](https://geksy.cc/openapi.json): the cloud API schema. Each operation states who can call it (`x-auth`), which
  permissions it needs (`x-required-permissions`), whether it is safe to retry (`x-idempotent`) and which errors it
  returns (`x-error-codes`).
* [`onboarding.arazzo.yaml`](https://geksy.cc/onboarding.arazzo.yaml): ready-made call sequences: plans, checking a workspace, paying
  from the balance, a profile with your own proxy or with a Geksy proxy.
* [`pricing.json`](https://geksy.cc/pricing.json): plans, prices and limits.
* `GET https://api.geksy.cc/v1/errors`: all error codes with actions; every API error carries `action`, what to do
  next (see [Error codes](https://geksy.cc/en/docs/api/errors/)).
