1,380 prompts from top AI collections
← Back to Market
[LIVE] [lezama/studio-agent] 3 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,275 characters
Status: [LIVE] Endpoints found: https://public-api.wordpress.com/wpcom/v2/ai-api-proxy/v1/chat/completions https://public-api.wordpress.com/wpcom/v2/ai-api-proxy https://public-api.wordpress.com/wpcom/v2/ai-api-proxy/v1/chat Source: https://github.com/lezama/studio-agent # Studio Agent A WordPress plugin that registers a Studio agent on top of [`Automattic/agents-api`](https://github.com/Automattic/agents-api) and routes prompts through the WordPress.com AI proxy via the canonical `wp-ai-client` API in WordPress 7.0+. It's a PoC of the "WordPress is the host" approach to agentic UX: the chat lives in `wp-admin`, the provider is a registered `wp-ai-client` provider, the tools are real `wp_register_ability()` registrations. <img width="1199" height="841" alt="Screenshot 2026-05-28 at 12 47 26 PM" src="https://github.com/user-attachments/assets/d2886ceb-0660-494b-b54a-2159c532dc8d" /> ## What's inside - A custom `wp-ai-client` provider (`studio-wpcom`) that proxies through `https://public-api.wordpress.com/wpcom/v2/ai-api-proxy`, authenticated with the Studio user's wpcom token. No per-site API key required. - An `agents-api` agent registration. - Three Abilities the agent can call: `studio/site-info`, `studio/list-posts`, `studio/list-plugins`. - A `wp-admin` chat page with a vanilla-JS UI that POSTs to a REST endpoint running a tool-calling loop (5 iterations max). - A bootstrap script that creates the Studio site, installs the plugins, and injects the wpcom token in one command. ## Requirements - macOS with the [Studio app](https://developer.wordpress.com/studio/) and its `studio` CLI on `PATH`. - Logged in to WordPress.com via Studio (`studio auth status` shows `Authenticated with WordPress.com`). - A local checkout of [`Automattic/agents-api`](https://github.com/Automattic/agents-api) as a sibling directory (or set `AGENTS_API_PATH`). ## Setup ```bash ./bin/bootstrap.sh ``` That's it. The script: 1. Creates a Studio site (`studio-agent-poc`) with WordPress 7.0 if it doesn't exist; reuses + restarts it if it does. 2. Copies `agents-api` and symlinks `studio-agent` into `wp-content/plugins/`. 3. Reads your wpcom access token from `~/.studio/shared.json` and stores it as `studio_wpcom_token` option (no token in any file
Download .txt