simple-ai-chat
v0.1.67
Published
AI chat application based on large language models (LLMs), supports web and command-line interfaces. Available at `simple-ai.io`.
Readme
Simple AI
Simple AI (simple-ai-chat) is a command-based AI chat application that supports both the web and CLI, aimed at providing users with an easy and simple AI experience.
It can use advanced large language models (LLMs) from multiple companies: OpenAI, xAI, Google AI, Anthropic, and Ollama models.
Text generation, image generation, and vision models are supported. Features like function calling and the Model Control Protocol (MCP) are also supported.
The application is deployed at simple-ai.io.
For bugs or suggestions, please report them to the repository's GitHub Issues page.
Quick Start
Web interface
https://simple-ai.ioCLI
Install:npm i simple-ai-chat -g
Start:simple-ai-chatorsc
Start CLI will also start the MCP client.
npm package:simple-ai-chatWeb CLI
https://cli.simple-ai.io
The CLI interface in the browser, no installation needed.MCP client
Install:npm i simple-ai-chat -g
Usesmcpto start the client service.
Themcpconfig.jsonfile is located in the~/.simplefolder.
Documentation
The documentation of user manual is available at simple-ai.io.
In the webpage, there is a little dot on the bottom right corner, click it to open the back page.
Alternatively, you can use the command :store use "Simple AI Documentation" to enable the data to AI, and ask it.
Full documentation is available at simple-ai.io/docs.
CLI Interface
cli.js is for the command-line interface.
- Setup with npm package
Instll from npm packagenpm i simple-ai-chat -g
Start the CLI with npm package command
simple-ai-chat or sc
Check versionsc [-v|--version]
Updatenpm install simple-ai-chat -g
Note: Start the CLI interface will also start the MCP client.
- CLI commands
Use the VI as editor for input:vi
Exit:exit
- Development
Start the CLInode cli.js
Debugsc [-d|--debug]
Change server base URL
By default the CLI will communicate with simple-ai.io server.
To change the server base URL use the command:
sc [-b|--base-url <base_url>]
MCP Client
mcp.js is for the MCP client.
Start the MCP clientnode mcp.js
Configure the MCP client
Use mcpconfig.json located in the ~/.simple folder to setup the MCP connection.
npm package start
After installing the npm package, start with the commandsmcp
Work with Docker MCP Tookit
Install Docker and setup the MCP Tookit.
Use mcpconfig.json.docker.example to connect.
Local Installation
Prerequisites
OpenAI API key (get from https://platform.openai.com/account/api-keys)Install the requirements.
npm installCreate
.envand setup it.
Create.envfrom.env.exampleRun
setup.shto initialize.bash setup.shBuild and run the app.
npm run build
Then usenpm run devornpm start
License
Simple AI License © 2023 simple-ai.io
You can fork this code and deploy it on your own machine for non-commercial use.
Commercial use of the software, or any part of it, is not permitted, and neither is
offering a product that competes with it, free of charge or not.
Portions of this project are based on code from OpenAI and are provided under the MIT License.
Originally Forked from https://github.com/openai
