KokoAPIKokoAPI
User GuideAPI ReferenceAI ApplicationsHelp & Support

AstrBot - Agent Chatbot

AstrBot is an open-source, all-in-one Agent chatbot platform that seamlessly integrates large model capabilities into mainstream instant messaging software such as QQ, Feishu, DingTalk, and WeChat Work, building reliable and scalable conversational AI infrastructure for individuals, developers, and teams. Whether it's a personal AI companion, smart customer service, automation assistant, or enterprise knowledge base, AstrBot can quickly build production-ready AI applications within your instant messaging software platform's workflow.

KokoAPI Integration Method

AstrBot supports integrating KokoAPI as a model provider, allowing users to access and use various AI model services through KokoAPI.

Configuration Steps

Obtain KokoAPI API Key

After registering and logging in to KokoAPI, click 'Console' in the top navigation bar, click 'Token Management', then click the 'Add Token' button to create a new API Key, select appropriate permissions, and then click 'Create'.

create-api-key

After successful creation, click the 'Copy Key' button to copy the generated API Key.

copy-api-key

Configure KokoAPI Service Provider in AstrBot

Open the AstrBot management panel, go to the 'Model Providers' page, then click the 'Add Model Provider' button.

KokoAPI perfectly supports OpenAI Chat Completion and Responses interfaces. We click 'OpenAI' to enter the OpenAI provider's configuration page.

In the pop-up dialog box, set the API Base URL to KokoAPI's interface address. If you have deployed KokoAPI locally, fill in the local address, for example, http://localhost:3000/v1. If you are using KokoAPI services provided by a third-party service provider, fill in the corresponding URL address, for example, https://api.example.com/v1.

Then, enter the API Key into the 'API Key' field and click the 'Save' button.

astrbot-provider-config

Then click Save to complete the KokoAPI provider configuration.

Apply Service Provider

Go to the 'Configuration File' page, find the 'Models' section, change 'Default Chat Model' to the KokoAPI provider you just created, and click the 'Save' button.

apply

At this point, you have successfully configured KokoAPI as AstrBot's model provider. Now, you can access and use various AI model services provided by KokoAPI through AstrBot.

How is this guide?

Last updated on