About blnk
blnk is a terminal chat client for users working with several AI providers. It supports model switching, streaming replies, and configured MCP servers.
Key features
- 01OpenAI、Anthropic、Google Gemini 支持
- 02Markdown 呈现的 CLI 界面
- 03提供商与模型切换
- 04流式回复与进度提示
- 05YAML 配置及 JSON 转换
- 06配置 MCP 服务
Use cases
- 01在终端与不同 AI 提供商聊天
- 02切换提供商或当前模型
- 03查看可用的 MCP 工具
MCP support
blnk 可通过 JSON 文件配置多个 MCP 服务,并列出可用工具。README 提到原生 MCP-reasoner 支持仍在规划中。
Details
From the project READMEblnk
A powerful terminal-based chat application for seamless interaction with multiple AI providers.
Features
- Multi-provider support (OpenAI, Anthropic, Google Gemini)
- Rich CLI interface with markdown formatting
- Dynamic model switching and API selection
- MCP integration for advanced reasoning
- Streaming responses with progress indicators
- Command system with help documentation
- YAML configuration with automatic JSON conversion
- Secure API key storage in user's home directory
Installation
Requires Python 3.13 or higher.
- Clone the repository:
git clone https://github.com/frgmt0/blnk.git
cd blnk
- Run the installation script:
./install.sh
This will:
- Create necessary config directories
- Install dependencies
- Set up the default configuration
- Install blnk in development mode
Quick Start
- Run the setup command to configure your API providers:
blnk
/setup
- Follow the prompts to configure your providers and API keys.
Usage
Start blnk:
blnk
Available Commands
/help- Show help message/apis- List available AI providers/use <api>- Switch to specified AI provider/model-list- Show available models for current/all providers/switch-model- Switch to a different model for current provider/tools- List available MCP tools/exit- Exit the application
Examples
/use anthropic # Switch to Anthropic provider
/switch-model claude-3-5-sonnet-20241022 # Switch to Claude 3 model
/tools # Show available tools
Configuration
blnk stores its configuration in ~/.blnk/config/:
config.yaml- Main configuration file (edit this for changes)config.json- Runtime configuration (automatically generated)mcp/*.json- MCP server configurations
MCP Integration
blnk supports integration with MCP (Model Context Protocol) servers. While native MCP-reasoner support is planned for future releases, you can already configure and use MCP servers:
- Create a JSON config file in
~/.blnk/config/mcp/(e.g.,default.json) - Configure the server details:
{
"server": {
"command": "node",
"args": ["path/to/mcp-reasoner/dist/index.js"],
"env": {}
}
}
Multiple MCP servers can be configured by creating additional JSON files in the mcp/ directory.
The configuration includes:
- Default API provider
- Model preferences
- API keys (securely stored)
- Token limits
- MCP settings
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with MCP-Reasoner for advanced reasoning capabilities
- Thanks to all contributors
Author
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.