Title: AI Connector for Token Harbor
Author: Asiqur Rahman
Published: <strong>December 3, 2026</strong>
Last modified: December 3, 2026

---

Search plugins

![](https://ps.w.org/ai-connector-for-token-harbor/assets/banner-772x250.jpg?rev
=3841468)

![](https://ps.w.org/ai-connector-for-token-harbor/assets/icon-256x256.png?rev=3841468)

# AI Connector for Token Harbor

 By [Asiqur Rahman](https://profiles.wordpress.org/imasikur22/)

[Download](https://downloads.wordpress.org/plugin/ai-connector-for-token-harbor.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/ai-connector-for-token-harbor/#description)
 * [Reviews](https://wordpress.org/plugins/ai-connector-for-token-harbor/#reviews)
 *  [Installation](https://wordpress.org/plugins/ai-connector-for-token-harbor/#installation)
 * [Development](https://wordpress.org/plugins/ai-connector-for-token-harbor/#developers)

 [Support](https://wordpress.org/support/plugin/ai-connector-for-token-harbor/)

## 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](https://tokenharbor.ai/docs)
 * API keys: [https://tokenharbor.ai/dashboard/api-keys](https://tokenharbor.ai/dashboard/api-keys)
 * Models & pricing: [https://tokenharbor.ai/models](https://tokenharbor.ai/models)
 * Terms of Service: [https://tokenharbor.ai/terms](https://tokenharbor.ai/terms)
 * Privacy Policy: [https://tokenharbor.ai/privacy](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](https://tokenharbor.ai/privacy)
   and [Terms of Service](https://tokenharbor.ai/terms).
 * 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

[⌊Settings → Connectors → Token Harbor — connect your Universal Key, choose Pass
filter, then set default and fallback models.⌉⌊Settings → Connectors → Token Harbor—
connect your Universal Key, choose Pass filter, then set default and fallback models
.⌉[

Settings  Connectors  Token Harbor — connect your Universal Key, choose Pass filter,
then set default and fallback models.

## Installation

 1. Upload the `ai-connector-for-token-harbor` folder to `/wp-content/plugins/`, or
    install the ZIP via **Plugins  Add New  Upload Plugin**.
 2. Activate the plugin through the **Plugins** screen.
 3. Go to **Settings  Connectors**.
 4. Open **Token Harbor** and paste your Universal Key from [Token Harbor API keys](https://tokenharbor.ai/dashboard/api-keys).
 5. 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](https://tokenharbor.ai/), open the dashboard API keys
page, and copy your Universal Key (`thk_live_…`). See the [Quickstart](https://tokenharbor.ai/docs/getting-started/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.

Contributors

 *   [ Asiqur Rahman ](https://profiles.wordpress.org/imasikur22/)

[Translate “AI Connector for Token Harbor” into your language.](https://translate.wordpress.org/projects/wp-plugins/ai-connector-for-token-harbor)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ai-connector-for-token-harbor/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ai-connector-for-token-harbor/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ai-connector-for-token-harbor/)
by [RSS](https://plugins.trac.wordpress.org/log/ai-connector-for-token-harbor/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **18 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 7.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [AI](https://wordpress.org/plugins/tags/ai/)[api](https://wordpress.org/plugins/tags/api/)
   [connectors](https://wordpress.org/plugins/tags/connectors/)[LLM](https://wordpress.org/plugins/tags/llm/)
   [openai](https://wordpress.org/plugins/tags/openai/)
 *  [Advanced View](https://wordpress.org/plugins/ai-connector-for-token-harbor/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ai-connector-for-token-harbor/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ai-connector-for-token-harbor/reviews/)

## Contributors

 *   [ Asiqur Rahman ](https://profiles.wordpress.org/imasikur22/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ai-connector-for-token-harbor/)