If you want to use OpenCode with the built-in AI features in WordPress 7.0, you can connect it using the Koneek plugin as an OpenAI-Compatible Provider.
OpenCode is known as an AI coding agent that can be used via the terminal. However, OpenCode also offers model services through OpenCode Zen and OpenCode Go that can be accessed using an API.
In this article, we will use OpenCode as an AI provider in WordPress using the Koneek.
Preparation Before Connecting OpenCode to WordPress AI
Before you begin, you need to prepare the following:
The name of the OpenCode model you will use
How to Connect OpenCode to WordPress AI
In this tutorial, we use the API from OpenCode Zen or OpenCode Go, not the OpenCode CLI that runs in the terminal.
OpenCode CLI is used as an AI coding agent on a local computer or server. Meanwhile, OpenCode Zen and OpenCode Go provide access to AI models via an API that can be used by other applications.
For WordPress AI, you need to use the API endpoint from OpenCode Zen or OpenCode Go.
1. Create an OpenCode Account To create an OpenCode account, you can visit opencode.ai
and select Zen or Go. You will then have the option to log in, and you can use your GitHub or Google account.
2. Create an API Key API Keys Once you have successfully created an account, you can create an API Key from the page
in the OpenCode dashboard. New Key Next, you can click the button
to create a new API Key, or you can simply copy the default API Key that is automatically generated when you create an account.
3. Select an AI Model in OpenCode Now you can choose the model you want to use for WordPress. You can open the models page from.
Models freeIf you want to use a free mode, you can search for models with the keyword deepseek-v4-flash-free.
, then copy the Model ID you want to use. For example
4. Connect OpenCode to WordPress
After obtaining the API Key and model name, open your WordPress dashboard and configure the API Key with the Koneek plugin. If the Koneek Settings > Koneek plugin is already installed, you can open the menu
in your WordPress dashboard.
- Fill in the OpenCode configuration details as follows:
- Name: Enter the name of the API you want to save
- Provider: Select the OpenAI-Compatible option
- API Key: Enter the API Key you obtained from OpenCode
deepseek-v4-flash-free - Model: Enter the name of the model you will use. For example
https://opencode.ai/zen/v1API URL: Use the OpenCode Base URL. For OpenCode Zen, usehttps://opencode.ai/zen/go/v1 - and for OpenCode Go, use
Timeout: You can leave this blank to use the default timeout.
Be sure to run a test connection before saving the AI data to ensure the details you entered can connect to OpenCode.
5. Configure the AI Features to Enable Settings > AINow you can enable the AI features you want to use from the menu . To enable this, make sure you have already activated the.
AI
plugin.
6. Use AI in WordPress After enabling the AI features, you can use them, for example, to rewrite sentences or rephrase posts in WordPress, regenerate titles, and more..
That is the easy way to connect OpenCode to WordPress AI that you can try using the
Koneek
plugin. FAQCan OpenCode Be Used in WordPress AI?
Yes. OpenCode Zen and OpenCode Go provide API endpoints that can be used by other applications. With the
Koneek
plugin, OpenCode can be connected to WordPress AI as an OpenAI-Compatible Provider.
Can OpenCode CLI Be Directly Connected to WordPress AI? https://opencode.ai/zen/v1 No. OpenCode CLI is an AI coding agent that runs in the terminal. For WordPress AI, you need to use an API service like OpenCode Zen or OpenCode Go. https://opencode.ai/zen/go/v1
What OpenCode API URL Should Be Used in Koneek? /chat/completions For OpenCode Zen, use
and for OpenCode Go, use
Do not use a full endpoint like
- in the Koneek API URL field.
- Which OpenCode Model Is Suitable for WordPress AI?
- For general use such as rephrasing, generating titles, and brainstorming, you can try a lightweight or free model first, for example:
- deepseek-v4-flash-free
mimo-v2.5-free
north-mini-code-free
nemotron-3-ultra-free
If you need better results, you can use a premium model according to your needs.
Is OpenCode Free? OpenCode Zen provides several models with different pricing, including some free models. However, the availability of free models, limits, and pricing can change at any time. Can I Use Other Providers Besides OpenCode? Yes.Koneek
COMMENTS
Loading...