Prerequisites
- Bun v1.0+. Grind runs on Bun, not Node.
- A terminal.
Install
Run the installer (recommended)
Initialize your vault
- Create
~/.grind/(your config and vault directory) - Generate an encryption key for your SQLite vault
- Create your user profile (name, timezone)
- Run database migrations
Create your first quest
- Title: what you’re doing
- Type:
daily,weekly,bounty,epic,chain, orritual - Difficulty:
easy,medium,hard, orepic - Skills: which skill tags this quest contributes to
Next Steps
Open the TUI
Launch the terminal dashboard for a real-time view of your quests, skills, and XP.
bash bun tui Set up your AI companion
Configure an AI provider to unlock the companion and agent features.
bash grindxp setup Start timer tracking
Use
start and stop to get a 1.5x XP proof bonus for timed work.Automate with the Forge
Create rules that watch your git activity, filesystem, or webhooks.
Environment Variables
Grind reads configuration from~/.grind/config and environment variables. Copy .env.example to .env for development:
| Variable | Description |
|---|---|
GRIND_VAULT_PATH | Path to your vault directory (default: ~/.grind) |
GRIND_ENCRYPTION_KEY | AES key for vault encryption (generated on init) |
ANTHROPIC_API_KEY | Anthropic API key for the companion |
OPENAI_API_KEY | OpenAI API key (alternative) |
GOOGLE_GENERATIVE_AI_API_KEY | Google Gemini API key (alternative) |
OLLAMA_BASE_URL | Ollama endpoint for local models |