22
33Understand any codebase in minutes, not days.
44
5- DevMap is a CLI that combines static analysis with optional Groq -powered
5+ DevMap is a CLI that combines static analysis with optional AI -powered
66interpretation. It maps project structure, generates reusable context, and
77answers focused questions without sending an entire repository to an AI model.
88
@@ -23,7 +23,7 @@ npx devmap --help
2323## Requirements
2424
2525- Node.js 18 or newer
26- - A Groq API key for AI-powered analysis and answers
26+ - A Groq or OpenRouter API key for AI-powered analysis and answers
2727
2828Static analysis still works when AI is not configured.
2929
@@ -39,18 +39,30 @@ devmap onboarding
3939devmap doctor
4040```
4141
42- ` devmap init ` validates the Groq key, stores configuration locally, prepares
42+ ` devmap init ` selects a provider, validates its key, stores configuration locally, prepares
4343` .devmap/ ` , generates ` DEVMAP.md ` , and integrates with ` AGENTS.md ` safely.
4444
45- ## Groq Setup
45+ ## AI Provider Setup
4646
47- Create a key at https://console.groq.com/keys , then either enter it during:
47+ Choose Groq or OpenRouter with the arrow keys during:
4848
4949``` bash
5050devmap init
5151```
5252
53- Or provide it to the current shell before non-interactive setup:
53+ Groq keys are available at https://console.groq.com/keys . OpenRouter keys are
54+ available at https://openrouter.ai/keys .
55+
56+ For OpenRouter, DevMap prompts:
57+
58+ ``` txt
59+ OpenRouter model [openrouter/free]:
60+ ```
61+
62+ Press Enter to use the free router, or type any free or paid OpenRouter model
63+ ID. The selected model is saved and used as the primary choice.
64+
65+ For non-interactive Groq setup:
5466
5567``` bash
5668GROQ_API_KEY=" your-key" devmap init
@@ -64,8 +76,15 @@ devmap init
6476Remove-Item Env:GROQ_API_KEY
6577```
6678
79+ For non-interactive OpenRouter setup:
80+
81+ ``` bash
82+ OPENROUTER_API_KEY=" your-key" devmap init
83+ ```
84+
6785The key is stored locally in ` ~/.devmap/config.json ` . Requests go directly from
68- your machine to Groq. DevMap does not send the key to a DevMap-owned server.
86+ your machine to the selected provider. DevMap does not send the key to a
87+ DevMap-owned server.
6988
7089## Commands
7190
@@ -81,11 +100,12 @@ devmap doctor
81100devmap config model auto
82101```
83102
84- Automatic model routing uses a fast model for focused questions and larger
85- models for architecture analysis. Override it with:
103+ Groq automatic routing uses a fast model for focused questions and larger
104+ models for architecture analysis. OpenRouter uses the model selected during
105+ init. Change either provider's model with:
86106
87107``` bash
88- devmap config model < groq- model-id>
108+ devmap config model < model-id>
89109devmap config model auto
90110```
91111
@@ -131,7 +151,7 @@ support promise.
131151## Privacy
132152
133153- Project analysis runs locally before AI interpretation.
134- - Full repository source is not sent to Groq .
154+ - Full repository source is not sent to the selected provider .
135155- ` ask ` selects a small set of relevant files.
136156- ` .env ` files and common generated directories are ignored.
137157- API keys are stored locally and should never be committed.
0 commit comments