Interact with AI models from the command line, with support for most major LLM providers and a beautiful terminal interface. User- and dev-friendly.
cargo install tofu-llmThis 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.
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.
-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
Want to modify the code yourself? Here's how:
-
Clone the repository:
git clone https://github.com/teccdev/tofu.git cd tofu -
Build the project:
cargo build
-
Test if desired:
cargo test -
Run:
cargo run -- --help
Dual-licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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 | Status | Notes |
|---|---|---|
| Linux | ✅ Working | Tested on latest Ubuntu and Arch, works as expected |
| Windows | 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.
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.
Free, private API with good rate limits. Used to make Tofu work right out of the box. ↗