Sign up for a Rohkun account to get started. You'll need an account to generate API keys and access the dashboard.
After signing up, navigate to your dashboard and generate an API key. This key authenticates your CLI requests.
Important: Keep your API key secure. Never commit it to version control or share it publicly.
Install Rohkun using pip:
pip install rohkun
Set your API key:
rohkun config --api-key YOUR_API_KEY
Navigate to your project directory and run:
rohkun run
This will scan your codebase and generate a report mapping your architecture.
Think of Rohkun like Git commits for your architecture. Each time you run rohkun run, it automatically creates a snapshot of your current architecture state. Here's a recommended workflow:
When you finish implementing a feature, run a scan to save the current state:
rohkun run
This automatically creates a snapshot with a sequence number (e.g., Snapshot #1, #2, #3).
Before refactoring or making significant architectural changes, run a scan to capture the current state:
rohkun run
After completing your changes, run another scan to capture the new state:
rohkun run
Starting from your second scan, rohkun run automatically compares your current architecture with the previous snapshot and shows you exactly what changed—new endpoints, removed API calls, broken connections, and more. No flags needed!
This workflow lets you save states automatically and compare them, similar to how you use Git to track code changes over time. Each rohkun run creates a new snapshot and automatically shows you the differences from the previous one.
Rohkun maps your codebase by identifying:
Rohkun uses AST (Abstract Syntax Tree) parsing to analyze your code. This allows us to understand code structure statically without executing it.
Limitations: Some patterns cannot be determined through static analysis alone. When we cannot definitively identify something, we:
rohkun run # Run a scan (creates snapshot & compares automatically)
rohkun run --verbose # Show detailed output
rohkun config --api-key KEY # Set API key
rohkun --version # Show version
rohkun --help # Show help
Rohkun supports analysis for:
Framework awareness is built-in for accurate detection across popular frameworks.
Credits renew each month on your billing date. Unused credits do not roll over.
Yearly plans provide credits as a lump sum for the entire year. These credits are not monthly renewed. You receive the full amount upfront and can use them throughout the year.
If you're getting authentication errors:
If scans are failing:
For additional support, check our Terms of Service or contact us through your dashboard.