Skip to content
/ cai-rs Public

A home made CMP for OpenAI's API. Provides: History, Memory, Tooling, File Writing among other interesting features.

License

Notifications You must be signed in to change notification settings

ishyv/cai-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

Abandoned. Developing Cai's Python version instead.

CAI

A customizable Rust-powered interface to chat with OpenAI's models from your terminal.

This is not just a chatbot—it’s a framework. Designed for developers who want a fast, scriptable way to interact with AI models. It supports persistent memory, command execution, and NEVER will have a GUI


Features

Terminal-based Chat – Communicate directly with OpenAI’s GPT via the console.

Persistent Memory – AI remembers past context between sessions.

Command Execution – Let the AI trigger shell commands securely.

File Writing – AI can write to your local filesystem using code blocks.

Chat History – Automatically saves and loads prior conversations.


Installation

  1. Clone the Repository

git clone https://github.com/hyvnova/cai

  1. Set Your OpenAI API Key

macOS / Linux

export OPENAI_API_KEY=your-key-here

Windows (CMD)

set OPENAI_API_KEY=your-key-here

You can also permanently add this to your environment variables for convenience.

  1. Build and Run the App

cargo run --release

You're in. Type a message, hit enter. Type q to quit.


Requirements

Rust (stable toolchain)

OpenAI API key

Works best on Windows (Linux/macOS support available)


License

MIT. Free to use, modify, or destroy your terminal with.


Built for devs who’d rather type than tab

About

A home made CMP for OpenAI's API. Provides: History, Memory, Tooling, File Writing among other interesting features.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published