SuperAPIAI Directory

cli

github.com · Other AI tools

Kleap is website infrastructure for AI agents, offering an MCP server and a command-line tool (CLI) that let agents such as Claude, ChatGPT, Cursor, or Claude Code directly create, edit, and publish real, live websites. The tool includes hosting, database, authentication, and domain capabilities, and uses a "verified live" mechanism to guarantee that a site is reported as published only when it is actually reachable, avoiding dead links. It can serve as an alternative to Lovable, v0, and Bolt, but driven by the user's own agent. The same package provides both a CLI and an MCP server, sharing the account and local authentication configuration, and calling the same REST API underneath.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose

Kleap provides website infrastructure for AI agents. Users can have Claude, ChatGPT, Cursor, or bash-tool-equipped agents such as Claude Code directly create, edit, and publish real, live websites, with hosting, database, authentication, and domains all included. It is positioned as an alternative to Lovable, v0, and Bolt, except that it is driven by the user's own agent, and every publish comes with a "verified live" guarantee: a site is reported as online only when it is actually reachable, with no fabricated dead links.

Key capabilities

The same package is both a CLI and an MCP server; the two share the account,~/.kleap/config.json authentication, and the underlying /api/v1 REST API.

  • CLI: suited to agents driven through bash tools (Claude Code, Codex, scripts, CI). By default it outputs 1-3 lines to save tokens; exit codes are clear (0 success, 1 failure, 2 still running); supports --json to get the full structured response.<app> The parameter accepts a numeric app ID, a slug.kleap.io URL, a bare slug, or a connected custom domain, resolved by the server in a single call.
  • MCP server: suited to clients with native MCP support (Claude Desktop, Cursor, ChatGPT connectors). Provides 34 hosting tools (33 regular tools plus upgrade_plan), covering find and build (find_app, create_app, modify_app, check_task, retry_task, rename_app, get_screenshot, wake_app), file operations (list_app_files, read_files, write_files, edit_files, delete_files, generate_image), publishing and domains (publish_app, get_publish_status, search_domains, buy_domain, check_domain, connect_domain), forms and traffic SEO (get_form_submissions, get_analytics, get_search_console, connect_search_console), database (get_database_schema, query_database_rows, insert_database_rows, update_database_rows, delete_database_rows, run_database_sql), and account (list_apps, get_app, get_credits).

Two ways to write code:write_files the user's model writes the exact file contents, and Kleap builds and deploys them as-is, without going through Kleap AI, without consuming Kleap credits, and without getting stuck;modify_app instead, the requirement is described in natural language and written by Kleap's AI. When editing existing files, it is recommended to first list_app_files then read_files, change only the necessary parts, then write_files, and finally publish_app. For bulk pages (programmatic SEO), it is recommended to generate dynamic routes plus data files, push them in one write_files and then publish. Builds take 5-15 minutes; you can use check_task long polling (default wait=45) or pass webhook_url for a fully automated flow.

Usage

Requires Node ≥ 18. You can run npx -y kleap-cli.

  • OAuth connection (no key required): In Claude Desktop, go to Settings → Connectors → Add custom connector and paste https://kleap.co/api/mcp and sign in; in ChatGPT, add this URL under Settings → Connectors and authorize with OAuth; in Cursor, go to Settings → MCP → Add server, paste the URL, and authorize.
  • Local CLI browser login: Run kleap auth login; after authorizing in the browser, the token is saved to ~/.kleap/config.json, after which npx -y kleap-cli is ready to use;kleap auth logout and kleap auth status are also available.
  • API key: In kleap.co/settings/api-key , create a kleap_live_sk_... key; when generating it, you can optionally choose the read-only, Build, or Full permission scope; purchasing domains is not included by default. Database and checkout tools require the database:* / domains:checkout permission; old keys will return 403 INSUFFICIENT_SCOPE, so you need to create a new key using the Full preset.

The API base URL can be overridden with KLEAP_API_URL (default https://kleap.co). A stored OAuth login is only valid for the origin that issued it; if it points to another address, the CLI will refuse to send the token (CREDENTIAL_ORIGIN_MISMATCH); for custom endpoints, use KLEAP_API_KEY or kleap auth keyinstead.

Use cases

Suitable for users who want their own AI agent to build and publish a site end to end, including single-page sites, adding forms to an existing site, republishing after changing the title, editing a site after locating it by address, and programmatic SEO batch pages, among others.

Limitations

Connecting is free; building and editing consume Kleap credits (get_credits to check the balance); specific pricing information was not provided. When a build fails, TASK_TIMEOUT / STALE_TASK are temporary issues and you can call retry_task; for TASK_FAILED, read the message and retry once. The agent can only operate on its own Kleap apps; OAuth tokens and keys are both scoped, transmitted only over HTTPS, and can be revoked at any time on the settings page.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools