Skip to main content
In this recipe, you will set up a centralized ChatCLI server that serves the entire development team. Each member can connect from their terminal and use the AI without needing to manage individual API keys.

Scenario

Small Team

5-10 developers sharing resources

Corporate API Keys

Central server with managed keys

Terminal Access

Each dev connects from their local terminal

Flexible Authentication

Shared token or individual credentials

1

Configure the Server

Create a .env file on the server:
Start with Docker Compose:
2

Distribute Access

Share with the team:
3

Each Dev Connects

4

Allow Individual Credentials (Optional)

Devs who prefer to use their own credentials can do so:
The server accepts both modes simultaneously. Devs can use the server credentials (default) or provide their own.
5

Add TLS (Production)

For production environments, add TLS:
Devs connect with:
6

Multiple Providers

Configure the server with multiple API keys. Devs can choose the provider:
7

Share Agents, Skills, and Plugins (Optional)

Provision agents, skills, and plugins on the server so the entire team has access to the same resources:
When devs connect, they automatically see the server resources:

Operational Tips

Set LOG_LEVEL=info on the server to log each request with the provider and model used.
When connected to a server, the /session commands interact with both local and remote:
  • /session save asks where to save: local, remote, or both
  • /session list displays sessions from both in separate sections
  • /session load searches both; if found in both, asks which one to load
  • /session delete checks both; if found in both, asks which one to remove
This allows devs to save sessions on the server to share with the team, or locally for offline use.

Summary