Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_API_KEY | No | OpenAI API key (used in YAML config with ${OPENAI_API_KEY}) | |
| OPENROUTER_KEY | No | OpenRouter API key (used in YAML config with ${OPENROUTER_KEY}) | |
| POLYBRAIN_DEBUG | No | Enable debug logging to stderr | |
| POLYBRAIN_API_KEY | No | API key | |
| POLYBRAIN_BASE_URL | No | LLM API base URL | |
| POLYBRAIN_HTTP_PORT | No | Server port | 32701 |
| POLYBRAIN_LOG_LEVEL | No | Log level | info |
| POLYBRAIN_MODEL_NAME | No | Model name | |
| POLYBRAIN_CONFIG_PATH | No | Custom config file path |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| chat | Send a message to an available LLM for help, second opinions, or brainstorming; start new conversations, continue existing ones, or switch models mid-chat. In the first message you shall provide as much context as possible, since the model has no idea of the problem. Example workflow:
|
| list_models | Get all the models you can chat with. Each model has different strengths and expertise. Call this first to see which model is best for your question, or to find a specific model ID to use in the chat tool. |
| conversation_history | See what you've already discussed with a specific model. Useful for understanding context before continuing a conversation, reviewing advice you got, or checking previous responses. Long conversations are automatically shortened to save context. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |