{"id":47910523,"url":"https://github.com/aiiddqd/ai-connector-openrouter-wordpress","last_synced_at":"2026-04-04T05:16:53.311Z","repository":{"id":347756913,"uuid":"1195159689","full_name":"aiiddqd/ai-connector-openrouter-wordpress","owner":"aiiddqd","description":"WordPress plugin that adds an OpenRouter AI provider connector via the WordPress 7.0 Connectors API, enabling native admin setup and secure API key configuration.","archived":false,"fork":false,"pushed_at":"2026-03-29T12:33:20.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T13:50:45.529Z","etag":null,"topics":["ai","connector","openrouter","plugin","wordpress","wp-ai-client"],"latest_commit_sha":null,"homepage":"https://ddev.app/blog/openrouter-provider-for-wordpress/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aiiddqd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-29T10:02:18.000Z","updated_at":"2026-03-29T13:50:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aiiddqd/ai-connector-openrouter-wordpress","commit_stats":null,"previous_names":["aiiddqd/ai-connector-openrouter-wordpress"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aiiddqd/ai-connector-openrouter-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiiddqd%2Fai-connector-openrouter-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiiddqd%2Fai-connector-openrouter-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiiddqd%2Fai-connector-openrouter-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiiddqd%2Fai-connector-openrouter-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiiddqd","download_url":"https://codeload.github.com/aiiddqd/ai-connector-openrouter-wordpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiiddqd%2Fai-connector-openrouter-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31388473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","connector","openrouter","plugin","wordpress","wp-ai-client"],"created_at":"2026-04-04T05:16:52.436Z","updated_at":"2026-04-04T05:16:53.305Z","avatar_url":"https://github.com/aiiddqd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenRouter Connector for WordPress\n\nOpenRouter Connector for WordPress adds an AI provider connector via the WordPress 7.0 Connectors API, so site owners can configure OpenRouter as an AI backend from a native admin screen. The plugin registers an ai_provider connector with api_key authentication, exposes a credentials link, and integrates with the WP AI Client for automatic provider discovery.\n\n---\n\n## WordPress AI API — Documentation\n\n### Core Announcements (WordPress 7.0)\n\n- [Introducing the AI Client in WordPress 7.0](https://make.wordpress.org/core/2026/03/24/introducing-the-ai-client-in-wordpress-7-0/) — `wp_ai_client_prompt()`, builder methods, feature detection, REST integration\n- [Introducing the Connectors API in WordPress 7.0](https://make.wordpress.org/core/2026/03/18/introducing-the-connectors-api-in-wordpress-7-0/) — connector registration, API key management, admin UI, `wp_connectors_init`\n- [WordPress 7.0 Beta 1 announcement](https://wordpress.org/news/2026/02/wordpress-7-0-beta-1/) — overview of all new features\n- [WordPress 7.0 Developer Notes (all)](https://make.wordpress.org/core/tag/dev-notes+7-0/) — full list of dev notes for the release\n\n### PHP AI Client SDK\n\n- [wordpress/php-ai-client on GitHub](https://github.com/WordPress/php-ai-client) — provider-agnostic PHP SDK bundled in WP 7.0 core; `AiClient`, `PromptBuilder`, provider registry\n- [wp-ai-client WordPress plugin (deprecated in 7.0+)](https://github.com/WordPress/wp-ai-client) — the predecessor plugin; REST API endpoints and JS API still active\n\n### Official Provider Plugin Examples\n\n- [AI Provider for OpenAI](https://github.com/WordPress/ai-provider-for-openai) — reference implementation; `AbstractApiProvider`, `AbstractOpenAiCompatibleModelMetadataDirectory`\n- [Call for testing: Community AI connector plugins](https://make.wordpress.org/ai/2026/03/25/call-for-testing-community-ai-connector-plugins/) — guidance for third-party provider plugins\n\n### OpenRouter\n\n- [OpenRouter API docs](https://openrouter.ai/docs) — OpenAI-compatible API, model IDs, authentication\n- [OpenRouter models list](https://openrouter.ai/models) — all available models with IDs (format: `provider/model`)\n- [OpenRouter API keys](https://openrouter.ai/keys) — create and manage API keys\n\n### wp-env (Local Development)\n\n- [Get started with wp-env](https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/) — official quick-start guide\n- [@wordpress/env package reference](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/) — full command reference, `.wp-env.json` schema\n- [Quick and easy local WordPress development with wp-env](https://developer.wordpress.org/news/2023/03/quick-and-easy-local-wordpress-development-with-wp-env/) — WordPress Developer Blog overview\n\n---\n\n## Local Development\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) LTS + npm\n- [`@wordpress/env`](https://www.npmjs.com/package/@wordpress/env) installed globally:\n  ```bash\n  npm -g i @wordpress/env\n  ```\n\nThe local environment uses **WordPress Playground** (no Docker required) with **WordPress 7.0 RC2** and **PHP 8.3**.\n\n### Start\n\n```bash\nwp-env start --runtime=playground\n```\n\n- Development site: http://localhost:8888\n- Admin: `admin` / `password`\n\nThe plugin is automatically mounted and activated.\n\n### Stop\n\n```bash\nwp-env stop\n```\n\n### Reset database\n\n```bash\nwp-env reset\nwp-env start --runtime=playground\n```\n\n### Update WordPress / re-apply config\n\n```bash\nwp-env start --runtime=playground --update\n```\n\n### Notes\n\n- Debug log is enabled — errors are written to `wp-content/debug.log` inside the environment.\n- If you need WP-CLI or Composer inside the container, switch to the Docker runtime (remove `--runtime=playground`). Docker Desktop must be running.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiiddqd%2Fai-connector-openrouter-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiiddqd%2Fai-connector-openrouter-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiiddqd%2Fai-connector-openrouter-wordpress/lists"}