Skip to Content
CoAI

CoAI Hosting: A Chat Screen for Your Users, Channels and Quotas for You

With our CoAI hosting we install CoAI, previously known as Chat Nio, on a fresh VDS of yours, alongside MySQL and Redis. CoAI does two jobs at once. Your users get a chat screen in the browser, and behind it CoAI routes their requests to providers such as OpenAI, Anthropic or Gemini through channels that you define. From the admin area you decide which models people see and whether usage is free, counted per request or counted per token.

Out of the box CoAI creates a root user with a password printed in its README and leaves registration open to anyone. During installation we swap that password for a randomly generated one, close registration, and test both before handing the server over. No provider key comes with it; you open the first channel with a key of your own.

Install

From $15/mo

Comes with

  • Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
  • Docker
  • HTTPS address
  • Admin account set up during installation
  • Full root access
CoAI4.25.0
CoAI admin Channels form with a channel named OpenAI - main, the OpenAI type, 30 model tags and an empty Secret field

Installation

Ready at handover

  • A new password for root

    The root / chatnio123456 login from CoAI's own setup does not work here. Before handover we make sure the new password opens an admin session while the old default and a made-up password both fail.

  • Registration closed

    CoAI ships with sign-up open. We switch it off in the admin settings during installation, restart the app so the change takes effect, and check that a stranger's sign-up is answered with "not open for registration".

  • MySQL 8.4 and Redis

    Users, channels, conversations and settings are stored in MySQL 8.4, with Redis as the cache. Where the project's example uses latest tags, we pin both images; MySQL comes from the long-term-support 8.4 line.

  • Your own session secret

    The secret that signs login tokens is generated for each installation instead of the template's sample value. CoAI's port 8094 is not reachable from outside; traffic comes in through the server's HTTPS proxy.

  • MySQL holds most of the memory

    In our measurements CoAI itself used 7 to 11 MiB and Redis 5 to 30 MiB, while MySQL sat at about 445 MiB. The database is what sizes the plan. That is why CoAI needs at least 2 GB of RAM with us.

  • Runs on UTC

    The upstream image is set to Asia/Shanghai time. We run the container on UTC, so timestamps in the admin screens are UTC.

Screens

CoAI on our test install

Click a screenshot to see it larger.

  • Admin › Channels › Add new channel with the OpenAI type and 30 models from Fill Template. Secret left empty; the channel was not saved.
  • Admin › Marketplace: an entry for gpt-4o-mini with a name, a short description and the Official label.
  • The Discover Models page users see, showing the card created from that Marketplace entry.
  • Admin › Billing: Non-Billing, Times Billing and Token Billing, with no rules defined.

Use cases

Who runs CoAI, and why

  • One chat address for a team

    You put the provider keys into channels; colleagues use the same chat screen without ever seeing a key. Models you describe in the Marketplace are listed on the Discover Models page.

  • Spreading load across providers

    The README describes channel priorities and weights, automatic retry on another channel and model redirection. We saw the Priority, Weight, Max Retry and Model Mapper fields in the channel form but did not test with several channels.

  • An OpenAI-style API for other tools

    According to the README, CoAI serves /v1/chat/completions, /v1/images and /v1/models in OpenAI's format, so other tools can point at one address. We did not call these endpoints through a real channel.

  • Quotas and charging

    Billing can make a model free, charge per request or charge per 1,000 tokens, and the admin area also holds subscriptions, gift codes and redemption codes. The admin dashboard showed amounts in CNY. We did not try taking payments.

Steps

Order, install, first channel

  1. 01

    Order

    CoAI comes preselected on the order page. You set the region and plan yourself, and anything below CoAI's minimum is unavailable. Prices start at $15.

  2. 02

    Installation

    We prepare the server, install CoAI, MySQL and Redis, replace the root password, close registration and test the login. When every check passes, the service is normally switched on.

  3. 03

    First channel

    Log in as root with the password from the link. Use the shield icon in the left bar to reach the admin area, go to Channels › Create Channel and fill in type, models, Secret and Endpoint.

  4. 04

    Introduce the model

    In the Marketplace give the model a name and a short description. Users then find it as a card on Discover Models.

Packages

Packages for CoAI

Only packages that meet the minimum CoAI needs are listed; prices are monthly.

  • USA 1

    Lowest-priced package that runs this app

    $15/mo

    4 vCPU4 GB RAM30 GB NVMe

    Install
  • USA 2

    $18/mo

    4 vCPU6 GB RAM40 GB NVMe

    Install
  • USA 3

    $22/mo

    4 vCPU8 GB RAM50 GB NVMe

    Install
  • USA 4

    $27/mo

    4 vCPU10 GB RAM60 GB NVMe

    Install
  • USA 5

    $33/mo

    4 vCPU12 GB RAM70 GB NVMe

    Install
  • USA 6

    $37/mo

    6 vCPU14 GB RAM80 GB NVMe

    Install
  • USA 7

    $40/mo

    6 vCPU16 GB RAM90 GB NVMe

    Install
  • USA 8

    $46/mo

    8 vCPU18 GB RAM100 GB NVMe

    Install

Technical

Technical details

App version
4.25.0
Operating system
Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
Minimum CPU
1 vCPU
Minimum memory
2 GB
Minimum disk
10 GB

Channels, models and user settings

In CoAI the unit that connects to a provider is the channel. A channel has a type (OpenAI, Anthropic, Gemini and so on), the model names it serves, one or more secret keys and an endpoint. For the OpenAI type the Endpoint starts as https://api.openai.com, and Fill Template Models adds the 30 model names the form knows for that type. The help text under Secret says that when several keys are entered, one is picked at random for each request.

To show users a model with a name and description you add it to the Marketplace; on our test install the entry appeared straight away as a card on Discover Models. Without a key we never saved a channel, so we did not chat with any model or see the chat screen's model picker filled in.

  • Changing the root password

    Change Root Password at the bottom of Admin › System changes it. The login form expects 6 to 36 characters. We did not install a separate password tool for SSH.

  • The login page while sign-up is closed

    The Sign up now link stays on the login page, but the server refuses the request. To reopen registration you change the setting under System › Site Settings; according to the source code CoAI reads it when the app starts.

  • Announcements

    Text sent from Admin › Broadcast appears in an Announcements Notifications box when users open the chat screen. The admin screen notes that only the most recent one is shown.

  • Interface languages

    The source code holds interface files for Simplified and Traditional Chinese, English, Japanese and Russian, and none for Turkish. Screen names here are quoted from the English interface.

  • Sections marked Pro

    Orders, Usage, CDN Warm and License in the admin menu carry a Pro badge, and the README mentions a commercial CoAI.Dev Business edition. We did not open those four sections.

Components of this installation
ComponentStatusNote
CoAI (programzmh/chatnio)InstalledPinned Docker Hub tag
MySQL 8.4InstalledUsers, channels, conversations
RedisInstalledCache
SearXNG (web search)Not installedPoint System › Web Search at your own instance
File parsing serviceNot installedLeft empty, the project's public service is used
SMTP (e-mail)Not configuredE-mail verification is off

Worth knowing before you rely on it

  • Files may leave the server

    The help text for File Parsing Service under System › General Settings says that if the field is empty, https://blob.coai.dev is used and its stability is not guaranteed. This installation has no parsing service of its own. We did not try uploading files; if files must not leave your server, run the project's blob-service yourself and enter its address there.

  • How passwords are stored

    CoAI's source code stores user passwords as unsalted SHA-256 hashes and puts no limit on password attempts. We give root a random 24-character password; ask your users for long passwords too.

  • Two numbering schemes

    The newest release tag on GitHub is v4.0.0, while Docker Hub images carry their own numbers such as 4.24.2 and 4.25.0. We install Docker Hub's 4.25.0, which was built from the project's main branch.

  • Updates

    The README talks about pulling the latest tag again or letting Watchtower update automatically. Our installation is pinned and never updates itself. When to upgrade is your decision; back up the MySQL volume first.

FAQ

Frequently asked questions

8 questions

How do I sign in the first time?

The handover e-mail names your CoAI address and the admin username, root; the password itself waits behind a link that works once. The address opens CoAI's own Login page. The chatnio123456 password from the README is refused on this installation.

Is a provider key included?

No. CoAI starts without any channel. You enter your OpenAI, Anthropic or other provider key in the Secret field under Channels › Create Channel, and that provider bills you directly.

Can my users register themselves?

Not as delivered: registration is off, and the Sign up now link on the login page ends in a refused request. You can reopen it in System › Site Settings; since SMTP is not set up, e-mail verification will not work.

Can I use a local model?

The README lists LocalAI and Ollama among the providers connected through the OpenAI format, which means an OpenAI-type channel with your model server's address as the Endpoint. No model server is included, and we have not tested this combination.

What if I forget the root password?

If it is still the original, the customer panel can e-mail a new link that reveals it again. Once you have used Change Root Password the panel no longer knows it, and this installation has no reset tool to run over SSH.

Which interface languages does CoAI have?

No. The source code includes Chinese, English, Japanese and Russian interface files. We did not try switching languages; everything on this page was seen in English.

Which CoAI version do I get?

The Docker Hub tag that is live in our catalogue. Today: 4.25.0. These numbers do not line up with the v4.x release tags on GitHub, so follow changes on the Docker Hub tag page and in the repository's commit history.

What if the installation stops halfway?

The service is normally not switched on until the root login, the refusal of the old password and the refused registration have all been checked. You can see where it stopped from the customer panel. Support then restarts the CoAI install or gives you the bare server, and writes to you about the outcome.

Catalogue

CoAI

Get CoAI installed on your server

Pick your package and pay; the app's installation starts with your order.