coder-agent 2.9.13 → 2.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +43 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # 🤖 Coder
2
2
 
3
- A powerful, zero-dependency, cross-platform CLI coding agent powered by **Google Gemini** (gemini-2.5-flash / gemini-2.5-pro) with native tool execution and a clean, minimal Apple-inspired design.
3
+ A powerful, zero-dependency, cross-platform CLI coding agent powered by **Google Gemini, Groq, Mistral, OpenRouter, NVIDIA NIM, and GitHub Models** with native tool execution and a clean, minimal Apple-inspired design.
4
4
 
5
5
  ## Features
6
6
 
7
7
  - **Apple-Inspired Design**: A clean, high-contrast, minimalist terminal UI styled in elegant monochrome greys and whites.
8
+ - **Multi-Provider AI Engine**: Query models from Gemini API, Groq, Mistral, OpenRouter, NVIDIA NIM, or GitHub Models.
9
+ - **Auto-Rotation & Fallbacks**: Automatically rotates to backup models within a provider family if a server error or rate-limit is hit.
10
+ - **Smart Rate-Limit Throttling**: Implements smart background cooldown timers between requests to prevent hitting provider Requests Per Minute (RPM) limits without disrupting the user experience.
8
11
  - **Global CLI Execution**: Install once and run anywhere via `coder-agent` (or the `coder` / `gemini-agent` / `groq-agent` compatibility aliases).
9
12
  - **System Automation Tools**:
10
13
  - `read_file` / `write_file` / `patch_file` — Segmented reading and patch-based editing.
@@ -36,23 +39,30 @@ npx coder-agent
36
39
 
37
40
  ## Setup & Configuration
38
41
 
39
- The agent requires a **Gemini API Key**.
42
+ The agent requires at least one API Key to function. By default, it uses the **Gemini API Key**.
40
43
 
41
44
  ### 1. Interactive Bootstrapping
42
- Simply run `coder-agent`. If no key is configured, the CLI will interactively prompt you for the key and offer to save it globally.
45
+ Simply run `coder-agent`. If no key is configured, the CLI will interactively prompt you for a Gemini key and offer to save it globally.
43
46
 
44
- ### 2. Command Line Flags
45
- You can save your key globally at any time using flags:
47
+ ### 2. Environment Variables
48
+ You can export provider API keys as environment variables:
46
49
 
47
50
  ```bash
48
- coder-agent --set-key YOUR_GEMINI_API_KEY
51
+ export GEMINI_API_KEY=AIzaSy...
52
+ export GROQ_API_KEY=gsk_...
53
+ export MISTRAL_API_KEY=...
54
+ export OPENROUTER_API_KEY=sk-or-...
55
+ export NVIDIA_API_KEY=nvapi-...
56
+ export GITHUB_TOKEN=github_pat_...
49
57
  ```
50
58
 
51
- ### 3. Environment Variables
52
- Alternatively, you can export it as an environment variable:
59
+ ### 3. REPL Commands (Config File)
60
+ Inside the interactive REPL session, use the `/key` command to save API keys globally:
53
61
 
54
62
  ```bash
55
- export GEMINI_API_KEY=AIzaSy...
63
+ /key # View active API key status for all providers
64
+ /key <api_key> # Save your Gemini API Key globally
65
+ /key <provider> <api_key> # Save key for a specific provider (e.g. /key groq gsk_...)
56
66
  ```
57
67
 
58
68
  ---
@@ -74,7 +84,7 @@ coder-agent "write a binary search script in Python"
74
84
  ### CLI Command Options
75
85
  - `-h, --help` — Show the help screen.
76
86
  - `-v, --version` — Show version information.
77
- - `--model <name>` — Set the default Gemini model globally.
87
+ - `--model <name>` — Set the default model globally.
78
88
  - `--set-key <key>` — Persist your Gemini API Key globally.
79
89
  - `--memory <scope>` — Define memory scope (`project`, `user`, or `local`).
80
90
 
@@ -86,7 +96,8 @@ Type these commands directly inside the interactive session:
86
96
 
87
97
  | Command | Description |
88
98
  |---------|-------------|
89
- | `/model [name]` | View active model or switch active model dynamically (e.g. `/model gemini-2.5-pro`) |
99
+ | `/model [name]` | View active model or switch active model dynamically (e.g. `/model groq/llama-3.3-70b-specdec`) |
100
+ | `/key [provider] [key]` | View stored API keys or save keys globally |
90
101
  | `/clear` | Wipe conversation memory |
91
102
  | `/status` | Show active model and memory usage details |
92
103
  | `/help` | Show command summary |
@@ -95,10 +106,27 @@ Type these commands directly inside the interactive session:
95
106
  ---
96
107
 
97
108
  ## Popular Models Supported
98
- - `gemini-2.5-flash` (Default, highly capable, extremely fast, massive 1M+ token context)
99
- - `gemini-2.5-pro` (Reasoning model, superb for complex coding tasks)
100
- - `gemini-2.0-flash` (Ultra-fast, lightweight)
101
- - `gemini-2.0-pro-exp` (Experimental reasoning model)
109
+
110
+ To use a model from a different provider, prefix the model name with `provider/`:
111
+
112
+ * **Google Gemini (Default)**:
113
+ * `gemini-2.5-flash` — Default, highly capable & fast (1M+ context).
114
+ * `gemini-2.5-pro` — High reasoning model, superb for complex coding.
115
+ * `gemini-3.5-flash` — Newest generation, ultra-fast.
116
+ * **Groq (`groq/`)**:
117
+ * `groq/llama-3.3-70b-specdec` — Blazing fast reasoning.
118
+ * `groq/gemma-2-9b-it` — Lightweight, fast open-weights.
119
+ * **Mistral (`mistral/`)**:
120
+ * `mistral/codestral` — SOTA open coding model.
121
+ * **OpenRouter (`openrouter/`)**:
122
+ * `openrouter/qwen/qwen-2.5-coder-32b-instruct:free` — Popular free-tier coding model.
123
+ * `openrouter/deepseek/deepseek-r1:free` — Powerful reasoning/thinking model.
124
+ * **NVIDIA NIM (`nvidia/`)**:
125
+ * `nvidia/qwen-2.5-coder-32b-instruct` — NVIDIA-optimized coding model.
126
+ * `nvidia/deepseek-r1` — High-speed reasoning model.
127
+ * **GitHub Models (`github/`)**:
128
+ * `github/claude-3.5-sonnet` — Claude 3.5 Sonnet (requires GitHub token).
129
+ * `github/gpt-4o` — OpenAI GPT-4o.
102
130
 
103
131
  ---
104
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-agent",
3
- "version": "2.9.13",
3
+ "version": "2.9.14",
4
4
  "description": "CLI coding agent powered by Google Gemini",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",