Skip to content

teccdev/tofu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐤 The Tofu Multi-LLM Client (beta)

Crates.io Version Documentation License: MIT License: Apache 2.0 Built with Pollinations

Interact with AI models from the command line, with support for most major LLM providers and a beautiful terminal interface. User- and dev-friendly.

Table of Contents

Installation

cargo install tofu-llm

This will automatically install Tofu and make it runnable with tofu. Make sure you have ~/.cargo/bin in your PATH.

You can also build from source if you prefer.

Usage

tofu [OPTIONS] [PROMPT]

Tofu works right out of the box via Pollinations. Free, no API key required. To use specific or more advanced models like the latest GPT and Gemini models, you will need to set your API keys using tofu -k.

You can switch between profiles with tofu -p, or during a conversation using /profile.

Options

  • -v, --verbose: Enable verbose output
  • -h, --help: Print help
  • -V, --version: Print version
  • -c, --config: Open the config file in the default editor
  • -k, --keys: Open the API keys file in the default editor
  • -p <PROFILE>, --profile <PROFILE>: Choose a profile from the config file

Development or Manual Installation

Want to modify the code yourself? Here's how:

  1. Clone the repository:

    git clone https://github.com/teccdev/tofu.git
    cd tofu
  2. Build the project:

    cargo build
  3. Test if desired:

    cargo test
  4. Run:

    cargo run -- --help

License

Dual-licensed under either of

at your option.

Upon stable (1.0.0) release, this license may change. If changed, former versions will remain under their original license(s). Tofu will stay open-source forever.

Platform Support

Platform Status Notes
Linux ✅ Working Tested on latest Ubuntu and Arch, works as expected
Windows ⚠️ Mostly Working Tested through Wine, works besides visual bugs; should work as expected on native Windows
MacOS ❓ Unknown Not tested, should work. Please create an issue with your results if you test it

Tofu was developed on Arch Linux. Feel free to create an issue or PR if you find any issues or fixes for any platforms.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Supporters

Pollinations.AI
Free, private API with good rate limits. Used to make Tofu work right out of the box.

About

A terminal-based LLM chat client

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors

Languages