Skip to content

Commit 81aa430

Browse files
committed
docs: license and docs.
1 parent c33547c commit 81aa430

2 files changed

Lines changed: 69 additions & 42 deletions

File tree

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2026 anomalyco
3+
Copyright (c) 2026 Blankeos
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md‎

Lines changed: 68 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
1-
# crabcode
1+
# 🦀 crabcode
22

33
> [!WARNING]
4-
> This project is very very early (like experiment-early) don't expect it to get to OpenCode level anytime soon.
4+
> This ambitious project is very very early (like experiment-early) don't expect it to get to OpenCode level anytime soon.
5+
> Like it literally doesn't even work yet.
56
6-
A purely Rust-based AI CLI coding agent with a beautiful terminal UI for interactive AI-assisted development.
7+
A purely Rust-based AI CLI coding agent with a beautiful terminal UI for interactive "agentic engineering".
8+
9+
> In the words of the buildwithpi.ai creator, 'There are many coding agents, this one is mine'.
10+
>
11+
> It's OpenCode but in pure Rust 🦀 w/ my personal flavors.
12+
>
13+
> ~ Carlo (Author)
714
815
![screenshot](_docs/screenshot.png)
916

1017
## Features
1118

1219
- **Made with Rust** - Uses ratatui, crossterm and nucleo (fuzzy search), all fast tech.
13-
- **Built for the OpenCode user** - works out of the box w/ opencode themes, every UX and more from opencode carefully ported into rust.
14-
- **Opens literally instantly** - one of my main motivations why I made this, rust! :D Very lightweight after build.
20+
- **Sounds** - I wanted this in opencode, I just made it built in instead of a plugin.
21+
- **TPS, TTFT, Latency metrics** - Also wanted this in opencode, just made it built-in.
22+
- **Opens instantly** - one of my main motivations why I made this! :D Very lightweight after build.
1523
- **Terminal UI (TUI)** - Beautiful, responsive interface built with [ratatui](https://github.com/ratatui-org/ratatui)
16-
- **Agent System** - Switch between PLAN (read-only analysis) and BUILD (implementation) agents with TAB
17-
- **Multiple Model Support** - Works with nano-gpt, z.ai, and other AI models via HTTP APIs
18-
- **Command System** - Intuitive commands: `/sessions`, `/new`, `/connect`, `/models`, `/exit`
19-
- **Auto-suggestions** - Get suggestions for commands when typing `/`
20-
- **Status Bar** - Shows version, current directory, git branch, active agent, and model
21-
- **Session Management** - Create and manage multiple chat sessions
22-
- **Streaming Responses** - Real-time streaming of AI responses
23-
- **Git Integration** - Detects and displays current git branch
24+
- **Built for the OpenCode user** - works out of the box w/ opencode themes, every UX, and some existing configs so you don't need to force your team to use crabcode.
25+
- **Same UX** - carefully ported most of the good UX from OpenCode i.e. shortcuts, etc.
26+
- **Agent System** - Switch between PLAN (read-only analysis) and BUILD (implementation) agents with TAB, and custom agents.
27+
- **Multiple Model Support** - Works w/ the same models.dev support.
28+
- **Command System** - Intuitive commands: `/sessions`, `/new`, `/connect`, `/models`, `/exit` + custom commands.
29+
- **Session Management** - Create and manage multiple chat sessions
30+
- **Streaming Responses** - Real-time streaming of AI responses (w/ [aisdk.rs](https://aisdk.rs))
2431

25-
## Installation
32+
## Quick Start
2633

2734
Install via cargo:
2835

@@ -50,18 +57,19 @@ cargo install crabcode
5057

5158
### Commands
5259

53-
| Command | Description |
54-
| --------------------- | ----------------------------------------------- |
55-
| `/sessions` | List all sessions |
56-
| `/new [name]` | Create a new session |
57-
| `/connect <provider>` | Configure model provider (e.g., nano-gpt, z.ai) |
58-
| `/models` | List available models |
59-
| `/exit` | Quit crabcode |
60+
| Command | Description |
61+
| ----------- | -------------------------------- |
62+
| `/sessions` | List all sessions |
63+
| `/new` | Create a new session |
64+
| `/connect` | Open the provider connect dialog |
65+
| `/models` | List available models |
66+
| `/exit` | Quit crabcode |
6067

6168
### Key Bindings
6269

6370
| Key | Action |
6471
| ---------------- | -------------------------------------- |
72+
| `Ctrl+X` | Open the shortcuts dialog |
6573
| `TAB` | Switch between PLAN and BUILD agents |
6674
| `Enter` | Submit message or execute command |
6775
| `Ctrl+C` (once) | Clear input |
@@ -76,15 +84,38 @@ cargo install crabcode
7684

7785
## Configuration
7886

79-
API keys are stored securely in `~/.config/crabcode`.
87+
Your credentials are stored in an OS-specific data directory:
88+
89+
- macOS: `~/Library/Application Support/crabcode/auth.json`
90+
- Linux: `~/.local/share/crabcode/auth.json`
91+
92+
Read the [extensive list of configs here](/_docs/config.mdx).
8093

8194
### Supported Providers
8295

83-
These are my priority. Will be powered by mostly [aisdk](https://github.com/lazy-hq/aisdk) + [models.dev](https://models.dev)
96+
> Will be powered by mostly [aisdk](https://github.com/lazy-hq/aisdk) + [models.dev](https://models.dev)
97+
> So **most of them** will work out of the box.
98+
99+
I tried crabcode specifically for these providers:
100+
101+
- [x] **opencode-zen**
102+
- [x] **nano-gpt**
103+
- [x] **zai**
104+
- [x] **minimax**
105+
- [x] **fireworks**
106+
- [x] **baseten**
107+
- [x] **ollama**
84108

85-
- [ ] **nano-gpt** - NanoGPT API
86-
- [ ] **z.ai** - z.ai coding plan
87-
- [ ] **minimax.io**
109+
> Feel free to create an issue / add to this list if you tried
110+
111+
### Known unsupported providers
112+
113+
> I might work harder to support these in the future.
114+
115+
- ChatGPT/Codex Subscription (Though they have good-will to support OpenCode, so maybe CrabCode can as well). **might support later**.
116+
- Kimi For Coding Subscription - I keep getting 401 but it works in OpenCode, I may have to contact them first. **might support later**
117+
- Gemini - It's OAuth + also very unsure. So currently no.
118+
- Claude Code Subscription - Known to explicitly not like harnesses. So never will, sorry.
88119

89120
## Development
90121

@@ -112,25 +143,21 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
112143

113144
## Inspiration
114145

115-
This project was inspired by [anomalyco/opencode](https://github.com/anomalyco/opencode).
146+
This project was inspired by [anomalyco/opencode](https://github.com/anomalyco/opencode). Also made this project w/ OpenCode btw, so thank you OpenCode! 🙏
116147

117148
## Scope
118149

119-
- Chat, switch models, agents
120-
- Minimal configurations (I want it to just feel at least like vanilla opencode)
121-
- The cheapest model providers (GLM, etc.)
122-
- A ding sound, my only opencode plugin at the moment.
123-
- No reverse-engineering oauth from big AI (Codex, Claude Code, Gemini), at least for now (Don't wanna get in trouble).
124-
- Possibly ralphy? (very far, idk how to do that)
125-
- ACP? (very far, idk how to do that)
126-
- No plugin ecosystem
127-
- No desktop app
128-
- No web sharing thing
150+
- [x] Chat, switch models, agents
151+
- [x] Minimal configurations (I want it to just feel at least like vanilla opencode)
152+
- [x] The cheapest model providers (GLM, etc.)
153+
- [ ] A ding sound, my only opencode plugin at the moment.
154+
- [x] No reverse-engineering oauth from big AI (Codex, Claude Code, Gemini), at least for now (Don't wanna get in trouble).
155+
- [ ] Possibly ralphy? (very far, idk how to do that)
156+
- [ ] ACP w/ Zed? (very far, idk how to do that)
157+
- [x] No plugin ecosystem
158+
- [x] No desktop app
159+
- [x] No web sharing thing
129160

130161
## Why?
131162

132163
I'm learning rust :D. Built a few TUIs as practice. Also been making AI chat apps on web, so I wanna work on this.
133-
134-
## Repository
135-
136-
[https://github.com/blankeos/crabcode](https://github.com/blankeos/crabcode)

0 commit comments

Comments
 (0)