Goal: Working AI reasoning in your terminal. Right now.
One sentence: ReasonKit turns messy LLM prompts into structured, auditable reasoning chains.
Before ReasonKit:
You: "Should I use microservices?"
LLM: [2000 words of maybe-correct rambling]
After ReasonKit:
You: rk think "Should I use microservices?" --profile balanced
Output: 10 perspectives analyzed, 3 hidden assumptions found, verdict with 82% confidence
Time to understand: 30 seconds.
curl -fsSL https://get.reasonkit.sh | bashcargo install reasonkit-coregit clone https://github.com/reasonkit/reasonkit-core && cd reasonkit-core && cargo build --releaseVerify it worked:
rk --version
# Expected: reasonkit-core 0.1.0Problem? Jump to Troubleshooting below.
# Anthropic Claude (recommended)
export ANTHROPIC_API_KEY="sk-ant-..."
# Or OpenAI
export OPENAI_API_KEY="sk-..."
# Or any of 18+ providers (see docs/integrations/)Copy-paste this exact command:
rk think "Should a startup use microservices or a monolith?" --profile quickProtocol: quick (GigaThink -> LaserLogic)
Model: claude-sonnet-4
[GigaThink] 10 PERSPECTIVES GENERATED
1. TEAM SIZE: Microservices need 20+ engineers to maintain
2. DEPLOYMENT: Monolith = 1 deploy, Microservices = N deploys
3. DEBUGGING: Distributed tracing is hard
4. ITERATION SPEED: Monolith 3x faster initially
...
[LaserLogic] HIDDEN ASSUMPTIONS DETECTED
! You're assuming scale is your problem (it isn't)
! You're assuming team has DevOps maturity
! Logical gap: No evidence microservices solves stated problem
VERDICT: Start with monolith | Confidence: 78% | Time: 1.8s
You now have structured AI reasoning.
| Use Case | Command | Time |
|---|---|---|
| Quick sanity check | --profile quick |
~30s |
| Important decision | --profile balanced |
~2min |
| Major architecture | --profile deep |
~5min |
| Production release | --profile paranoid |
~10min |
Code review:
rk think "Review this PR: https://github.com/org/repo/pull/123" --profile balancedArchitecture decision:
rk think "GraphQL vs REST for a mobile banking app" --profile deepRisk assessment:
rk think "What could go wrong with this deployment plan?" --profile paranoidDebug assistance:
rk think "Why might a React component re-render infinitely?" --profile quickEach ThinkTool catches a specific blind spot:
# Generate 10+ perspectives you missed
rk think "Evaluate AI safety" --protocol gigathink
# Find logical fallacies in an argument
rk think "Is this reasoning valid: X therefore Y" --protocol laserlogic
# First principles decomposition
rk think "What really matters for user growth?" --protocol bedrock
# Verify claims with sources
rk think "Is Rust really faster than Go?" --protocol proofguard
# Adversarial self-critique
rk think "Critique my startup idea: X" --protocol brutalhonesty# Add cargo bin to PATH
export PATH="$HOME/.cargo/bin:$PATH"
# Make it permanent
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
source ~/.zshrc# Check if set
echo $ANTHROPIC_API_KEY
# Set it
export ANTHROPIC_API_KEY="sk-ant-..."# Use a faster/cheaper provider
rk think "query" --provider groq
# Or set budget limits
rk think "query" --budget "$0.10"See Installation & Troubleshooting for platform-specific fixes.
| Goal | Resource |
|---|---|
| Full CLI options | CLI Reference |
| ThinkTool deep dive | ThinkTools Guide |
| Provider setup | Integrations |
| Real-world use cases | Use Cases |
| Rust API | API Reference |
INSTALL: curl -fsSL https://get.reasonkit.sh | bash
VERIFY: rk --version
API KEY: export ANTHROPIC_API_KEY="sk-ant-..."
PROFILES:
--profile quick Fast (30s, 70% confidence)
--profile balanced Standard (2min, 80% confidence)
--profile deep Thorough (5min, 85% confidence)
--profile paranoid Maximum (10min, 95% confidence)
THINKTOOLS:
--protocol gigathink 10+ perspectives
--protocol laserlogic Logic validation
--protocol bedrock First principles
--protocol proofguard Source verification
--protocol brutalhonesty Adversarial critique
PROVIDERS:
--provider anthropic Claude (default)
--provider openai GPT-4
--provider groq Ultra-fast
--provider openrouter 300+ models
OUTPUT:
--format text Human-readable (default)
--format json Machine-parseable
Total time: Under 5 minutes.
Website: reasonkit.sh | Docs: docs.rs/reasonkit-core