{"id":418046,"date":"2026-12-03T02:52:22","date_gmt":"2026-12-03T02:52:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-connector-for-token-harbor\/"},"modified":"2026-12-03T02:52:08","modified_gmt":"2026-12-03T02:52:08","slug":"ai-connector-for-token-harbor","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ai-connector-for-token-harbor\/","author":14339558,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"7.0","requires_php":"7.4","requires_plugins":null,"header_name":"AI Connector for Token Harbor","header_author":"Asiqur Rahman","header_description":"Connect WordPress to Token Harbor with your Universal API key. Registers on Settings \u2192 Connectors for the WordPress AI Client.","last_updated":"2026-12-03 02:52:08","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/greenlifeit.com\/plugins","header_author_uri":"https:\/\/asique.net","rating":0,"author_block_rating":0,"active_installs":0,"downloads":118,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"imasikur22","date":"2026-12-03 02:52:08","revision":3841468}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3841468,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3841468,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3841468,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3841468,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3841468,"resolution":"1","location":"assets","locale":"","width":1346,"height":1392}},"screenshots":{"1":"Settings \u2192 Connectors \u2192 Token Harbor \u2014 connect your Universal Key, choose Pass filter, then set default and fallback models."}},"plugin_section":[],"plugin_tags":[2353,1556,259397,226124,194533],"plugin_category":[],"plugin_contributors":[94836],"plugin_business_model":[],"class_list":["post-418046","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-api","plugin_tags-connectors","plugin_tags-llm","plugin_tags-openai","plugin_contributors-imasikur22","plugin_committers-imasikur22"],"banners":{"banner":"https:\/\/ps.w.org\/ai-connector-for-token-harbor\/assets\/banner-772x250.jpg?rev=3841468","banner_2x":"https:\/\/ps.w.org\/ai-connector-for-token-harbor\/assets\/banner-1544x500.jpg?rev=3841468","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ai-connector-for-token-harbor\/assets\/icon-128x128.png?rev=3841468","icon_2x":"https:\/\/ps.w.org\/ai-connector-for-token-harbor\/assets\/icon-256x256.png?rev=3841468","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ai-connector-for-token-harbor\/assets\/screenshot-1.png?rev=3841468","caption":"Settings \u2192 Connectors \u2192 Token Harbor \u2014 connect your Universal Key, choose Pass filter, then set default and fallback models."}],"raw_content":"<!--section=description-->\n<p><strong>AI Connector for Token Harbor<\/strong> registers Token Harbor as an AI provider with the WordPress AI Client (WordPress 7+).<\/p>\n\n<p>This is an independent, community plugin. It is not affiliated with, endorsed by, or sponsored by Token Harbor.<\/p>\n\n<p>After activation, open <strong>Settings \u2192 Connectors<\/strong>, find <strong>Token Harbor<\/strong>, and paste your Universal Key (<code>thk_live_\u2026<\/code>). WordPress AI features that use the AI Client can then route requests through Token Harbor.<\/p>\n\n<p>Token Harbor is a third-party AI gateway (SaaS). This plugin does not include AI models itself. When you configure an API key and run a request, prompt content and related API fields are sent to Token Harbor at <code>https:\/\/tokenharbor.ai\/<\/code>.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Appears on <strong>Settings \u2192 Connectors<\/strong><\/li>\n<li>Stores your Token Harbor Universal Key via the core Connectors API<\/li>\n<li>On <strong>Settings \u2192 Connectors \u2192 Token Harbor<\/strong>, choose searchable default and fallback models after connecting your key<\/li>\n<li>Optional Pass filter (Agent \/ Office \/ Frontier) using Token Harbor <code>covered_by_plans<\/code><\/li>\n<li>Prefers default \u2192 fallback for WordPress AI text generation; helpers retry on rate limit \/ unavailable \/ payment errors<\/li>\n<li>OpenAI-compatible text generation (<code>\/v1\/chat\/completions<\/code>)<\/li>\n<li>Live model discovery via <code>GET \/v1\/models<\/code><\/li>\n<li>Public PHP helpers for other plugins\/themes:\n\n<ul>\n<li><code>acth_is_configured()<\/code><\/li>\n<li><code>acth_chat_completion( $messages, $args )<\/code><\/li>\n<li><code>acth_get_completion_text( $response )<\/code><\/li>\n<li><code>acth_list_models()<\/code><\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>External service<\/h4>\n\n<p>This plugin connects to <strong>Token Harbor<\/strong> (<code>tokenharbor.ai<\/code>):<\/p>\n\n<ul>\n<li>Documentation: <a href=\"https:\/\/tokenharbor.ai\/docs\">https:\/\/tokenharbor.ai\/docs<\/a><\/li>\n<li>API keys: <a href=\"https:\/\/tokenharbor.ai\/dashboard\/api-keys\">https:\/\/tokenharbor.ai\/dashboard\/api-keys<\/a><\/li>\n<li>Models &amp; pricing: <a href=\"https:\/\/tokenharbor.ai\/models\">https:\/\/tokenharbor.ai\/models<\/a><\/li>\n<li>Terms of Service: <a href=\"https:\/\/tokenharbor.ai\/terms\">https:\/\/tokenharbor.ai\/terms<\/a><\/li>\n<li>Privacy Policy: <a href=\"https:\/\/tokenharbor.ai\/privacy\">https:\/\/tokenharbor.ai\/privacy<\/a><\/li>\n<\/ul>\n\n<p>You need a Token Harbor account and API key. Free-tier and paid usage are governed by Token Harbor, not by this plugin. By configuring your API key and sending requests, you use Token Harbor under their Terms of Service and Privacy Policy.<\/p>\n\n<h4>Privacy<\/h4>\n\n<ul>\n<li>API keys are managed by WordPress Connectors \/ the AI Client. This plugin does not read raw connector credentials; it routes generation through <code>wp_ai_client_prompt()<\/code>.<\/li>\n<li>When WordPress AI (or helpers that use the AI Client) send a request, prompt content is transmitted to Token Harbor at <code>https:\/\/tokenharbor.ai\/<\/code>.<\/li>\n<li>Prompt content and related API fields are processed by Token Harbor (and their upstream model providers) under their <a href=\"https:\/\/tokenharbor.ai\/privacy\">Privacy Policy<\/a> and <a href=\"https:\/\/tokenharbor.ai\/terms\">Terms of Service<\/a>.<\/li>\n<li>This plugin does not send telemetry, site URLs, or admin emails to Token Harbor on activation or in the background.<\/li>\n<li>No requests are sent until you configure an API key under <strong>Settings \u2192 Connectors<\/strong>.<\/li>\n<\/ul>\n\n<h3>Disclaimer<\/h3>\n\n<p>This is an independent, community plugin. It is not affiliated with, endorsed by, or sponsored by Token Harbor. Token Harbor is a third-party service and trademark of its respective owners.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>ai-connector-for-token-harbor<\/code> folder to <code>\/wp-content\/plugins\/<\/code>, or install the ZIP via <strong>Plugins \u2192 Add New \u2192 Upload Plugin<\/strong>.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen.<\/li>\n<li>Go to <strong>Settings \u2192 Connectors<\/strong>.<\/li>\n<li>Open <strong>Token Harbor<\/strong> and paste your Universal Key from <a href=\"https:\/\/tokenharbor.ai\/dashboard\/api-keys\">Token Harbor API keys<\/a>.<\/li>\n<li>Open <strong>Token Harbor<\/strong> on the Connectors screen, pick a default model (searchable list loaded from Token Harbor), and save.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20do%20i%20configure%20the%20api%20key%3F\"><h3>Where do I configure the API key?<\/h3><\/dt>\n<dd><p><strong>Settings \u2192 Connectors \u2192 Token Harbor<\/strong>. That is the WordPress 7 Connectors screen (<code>options-connectors.php<\/code>).<\/p><\/dd>\n<dt id=\"where%20do%20i%20choose%20the%20default%20model%3F\"><h3>Where do I choose the default model?<\/h3><\/dt>\n<dd><p><strong>Settings \u2192 Connectors \u2192 Token Harbor \u2192 Edit<\/strong>. After the API key is connected, use the searchable model field (loaded from Token Harbor).<\/p><\/dd>\n<dt id=\"where%20do%20i%20get%20an%20api%20key%3F\"><h3>Where do I get an API key?<\/h3><\/dt>\n<dd><p>Sign in at <a href=\"https:\/\/tokenharbor.ai\/\">tokenharbor.ai<\/a>, open the dashboard API keys page, and copy your Universal Key (<code>thk_live_\u2026<\/code>). See the <a href=\"https:\/\/tokenharbor.ai\/docs\/getting-started\/quickstart\">Quickstart<\/a>.<\/p><\/dd>\n<dt id=\"what%20base%20url%20does%20this%20use%3F\"><h3>What base URL does this use?<\/h3><\/dt>\n<dd><p>https:\/\/tokenharbor.ai\/v1 (OpenAI-compatible). Filterable via <code>acth_base_url<\/code>.<\/p><\/dd>\n<dt id=\"how%20do%20other%20plugins%20use%20this%20connector%3F\"><h3>How do other plugins use this connector?<\/h3><\/dt>\n<dd><p>`php\n$response = acth_chat_completion(\n    array(\n        array(\n            'role'    =&gt; 'user',\n            'content' =&gt; 'Hello',\n        ),\n    )\n);<\/p>\n\n<p>if ( ! is_wp_error( $response ) ) {\n    $text = acth_get_completion_text( $response );\n}\n    `<\/p>\n\n<p>You can also use the WordPress AI Client with provider ID <code>token_harbor<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Connect WordPress AI to Token Harbor with your Universal API key. Appears under Settings \u2192 Connectors for the WordPress AI Client.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/418046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=418046"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/imasikur22"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=418046"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=418046"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=418046"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=418046"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=418046"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=418046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}