| Crates.io | cosmos-tui |
| lib.rs | cosmos-tui |
| version | 0.1.4 |
| created_at | 2026-01-26 00:15:32.005914+00 |
| updated_at | 2026-01-26 00:15:32.005914+00 |
| description | A contemplative vibe coding companion for your codebase |
| homepage | |
| repository | https://github.com/cameronspears/cosmos |
| max_upload_size | |
| id | 2069870 |
| size | 802,136 |
An AI-powered assistant that reviews your code and suggests improvements — right in your terminal.
Cosmos reads your project, finds things that could be better, and helps you fix them. No complex setup. No IDE required. Just run it and go.
Supported languages: JavaScript, TypeScript, Python, Rust, Go
Choose your operating system below. Installation takes about 5 minutes and requires an internet connection.
Open the Terminal app and paste this command:
curl -sSL https://raw.githubusercontent.com/cameronspears/cosmos/main/install.sh | bash
How to open Terminal:
Cmd + Space to open SpotlightWhat happens during installation:
When you see "Installation complete!", you're ready to go.
Open PowerShell and paste this command:
irm https://raw.githubusercontent.com/cameronspears/cosmos/main/install.ps1 | iex
How to open PowerShell:
What happens during installation:
When you see "Installation complete!", you're ready to go.
Open your terminal and run:
curl -sSL https://raw.githubusercontent.com/cameronspears/cosmos/main/install.sh | bash
The process is the same as Mac — it installs Rust if needed, then builds cosmos.
Cosmos needs to run from inside your project folder.
Mac:
cd (with a space after it)Windows:
cd (with a space after it)C:\Users\YourName\Projects\my-appLinux:
cd /path/to/your/projectExample:
cd /Users/yourname/Projects/my-website
Once you're in your project folder, type:
cosmos
Cosmos uses AI to analyze your code and suggest improvements. The first time you run it, you'll need to set up an API key.
Your key is saved securely on your computer. You won't need to enter it again.
When cosmos starts, you'll see a list of suggestions for your project.
| Key | What it does |
|---|---|
↑ ↓ |
Move up and down the list |
Enter |
View details or apply a suggestion |
Tab |
Switch between panels |
? |
Show help |
q |
Quit cosmos |
u to undo the last change| Key | What it does |
|---|---|
/ |
Search through suggestions |
i |
Ask cosmos a question about your code |
g |
Toggle between grouped and flat view |
Esc |
Go back or cancel |
When you apply a suggestion:
This keeps your main code safe. All changes go through your normal review process.
Cosmos marks suggestions by importance:
| Icon | Meaning |
|---|---|
!! |
High priority — significant improvement |
! |
Medium priority — worth considering |
| (blank) | Low priority — minor enhancement |
To get the latest version, run the install command again:
Mac/Linux:
curl -sSL https://raw.githubusercontent.com/cameronspears/cosmos/main/install.sh | bash
Windows:
irm https://raw.githubusercontent.com/cameronspears/cosmos/main/install.ps1 | iex
Or if you're comfortable with Rust, simply run:
cargo install cosmos-tui
Remove cosmos:
cargo uninstall cosmos-tui
Remove Rust (optional):
rustup self uninstall
Try these steps:
source ~/.cargo/env (Mac/Linux)which cosmos (Mac/Linux) or where cosmos (Windows)If cosmos still isn't found, the installation may not have completed. Try running the install script again.
The installation compiles cosmos from source, which requires downloading and building dependencies. This can take several minutes, especially on slower internet connections or older computers.
If installation fails:
Make sure you're running cosmos from inside a project folder that contains code files. Cosmos works with JavaScript, TypeScript, Python, Rust, and Go files.
If cosmos can't find your API key, you can set it up again:
cosmos --setup
If you're using zsh (the default on newer Macs), you may need to add Cargo to your PATH:
echo 'source "$HOME/.cargo/env"' >> ~/.zshrc
source ~/.zshrc
If PowerShell blocks the install script, run this first:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Then try the install command again.
# Run cosmos in current folder
cosmos
# Run cosmos on a specific project
cosmos /path/to/your/project
# Set up or change your API key
cosmos --setup
# Show project statistics
cosmos --stats
# Show version
cosmos --version
MIT
"A contemplative companion for your codebase"