Description
AI Connector for Token Harbor registers Token Harbor as an AI provider with the WordPress AI Client (WordPress 7+).
This is an independent, community plugin. It is not affiliated with, endorsed by, or sponsored by Token Harbor.
After activation, open Settings Connectors, find Token Harbor, and paste your Universal Key (thk_live_…). WordPress AI features that use the AI Client can then route requests through Token Harbor.
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 https://tokenharbor.ai/.
Features
- Appears on Settings Connectors
- Stores your Token Harbor Universal Key via the core Connectors API
- On Settings Connectors Token Harbor, choose searchable default and fallback models after connecting your key
- Optional Pass filter (Agent / Office / Frontier) using Token Harbor
covered_by_plans - Prefers default fallback for WordPress AI text generation; helpers retry on rate limit / unavailable / payment errors
- OpenAI-compatible text generation (
/v1/chat/completions) - Live model discovery via
GET /v1/models - Public PHP helpers for other plugins/themes:
acth_is_configured()acth_chat_completion( $messages, $args )acth_get_completion_text( $response )acth_list_models()
External service
This plugin connects to Token Harbor (tokenharbor.ai):
- Documentation: https://tokenharbor.ai/docs
- API keys: https://tokenharbor.ai/dashboard/api-keys
- Models & pricing: https://tokenharbor.ai/models
- Terms of Service: https://tokenharbor.ai/terms
- Privacy Policy: https://tokenharbor.ai/privacy
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.
Privacy
- API keys are managed by WordPress Connectors / the AI Client. This plugin does not read raw connector credentials; it routes generation through
wp_ai_client_prompt(). - When WordPress AI (or helpers that use the AI Client) send a request, prompt content is transmitted to Token Harbor at
https://tokenharbor.ai/. - Prompt content and related API fields are processed by Token Harbor (and their upstream model providers) under their Privacy Policy and Terms of Service.
- This plugin does not send telemetry, site URLs, or admin emails to Token Harbor on activation or in the background.
- No requests are sent until you configure an API key under Settings Connectors.
Disclaimer
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.
Screenshots

Installation
- Upload the
ai-connector-for-token-harborfolder to/wp-content/plugins/, or install the ZIP via Plugins Add New Upload Plugin. - Activate the plugin through the Plugins screen.
- Go to Settings Connectors.
- Open Token Harbor and paste your Universal Key from Token Harbor API keys.
- Open Token Harbor on the Connectors screen, pick a default model (searchable list loaded from Token Harbor), and save.
FAQ
-
Where do I configure the API key?
-
Settings Connectors Token Harbor. That is the WordPress 7 Connectors screen (
options-connectors.php). -
Where do I choose the default model?
-
Settings Connectors Token Harbor Edit. After the API key is connected, use the searchable model field (loaded from Token Harbor).
-
Where do I get an API key?
-
Sign in at tokenharbor.ai, open the dashboard API keys page, and copy your Universal Key (
thk_live_…). See the Quickstart. -
What base URL does this use?
-
https://tokenharbor.ai/v1 (OpenAI-compatible). Filterable via
acth_base_url. -
How do other plugins use this connector?
-
`php
$response = acth_chat_completion(
array(
array(
‘role’ => ‘user’,
‘content’ => ‘Hello’,
),
)
);if ( ! is_wp_error( $response ) ) {
$text = acth_get_completion_text( $response );
}
`You can also use the WordPress AI Client with provider ID
token_harbor.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“AI Connector for Token Harbor” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “AI Connector for Token Harbor” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
