@the-agenticflow/openflows 0.1.15 → 0.1.17

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.
package/README.md CHANGED
@@ -23,8 +23,8 @@ That's it! The package handles everything automatically.
23
23
 
24
24
  You don't need to know about proxies, MCP servers, or backend routing. The package:
25
25
 
26
- 1. **Installs all dependencies** - Including `mcp-proxy` for GitHub connectivity
27
- 2. **Auto-detects your setup** - Fireworks key? Direct mode. Gateway? Proxy starts automatically
26
+ 1. **Installs all dependencies** - Including `anthropic-proxy` for LLM API translation
27
+ 2. **Auto-detects your setup** - Fireworks key? Proxy starts automatically. Anthropic key? Direct mode.
28
28
  3. **Manages the proxy lifecycle** - Starts/stops the built-in proxy as needed
29
29
  4. **Provides helpful errors** - Clear messages when something needs attention
30
30
 
@@ -32,10 +32,58 @@ You don't need to know about proxies, MCP servers, or backend routing. The packa
32
32
 
33
33
  | Mode | What You Need | Proxy Required? |
34
34
  |------|---------------|-----------------|
35
- | **Fireworks Direct** | `FIREWORKS_API_KEY` | No |
35
+ | **Fireworks AI** | `FIREWORKS_API_KEY` + `PROXY_TARGET_MODEL` | Auto-started (built-in) |
36
36
  | **Anthropic Direct** | `ANTHROPIC_API_KEY` | No |
37
37
  | **Custom Gateway** | `GATEWAY_URL` + `GATEWAY_API_KEY` | Auto-started |
38
38
 
39
+ ### Fireworks AI Setup (Recommended)
40
+
41
+ Fireworks AI provides cost-effective OpenAI-compatible endpoints. Since Claude Code CLI speaks the Anthropic Messages API, the package includes a built-in protocol translator that automatically starts.
42
+
43
+ **Via the setup wizard:**
44
+
45
+ ```bash
46
+ openflows-setup
47
+ ```
48
+
49
+ When you select **Fireworks AI** as your provider, the wizard will:
50
+ 1. Ask for your `FIREWORKS_API_KEY`
51
+ 2. Show the proxy configuration screen with these fields:
52
+ - **Proxy URL** — pre-filled as `http://localhost:8765/v1`
53
+ - **Proxy API Key** — your Fireworks key (auto-filled)
54
+ - **Target Model (PROXY_TARGET_MODEL)** — e.g., `accounts/fireworks/models/glm-5`
55
+ - **Gateway URL** — pre-filled as `https://api.fireworks.ai/inference/v1/`
56
+ - **Gateway API Key** — your Fireworks key (auto-filled)
57
+ 3. Complete the remaining steps (agents, GitHub, repository)
58
+
59
+ **What `PROXY_TARGET_MODEL` does:**
60
+
61
+ Instead of manually mapping each Claude model name, set this once. The local proxy:
62
+ 1. Strips ANSI escape codes from incoming model names
63
+ 2. Detects Claude patterns (`claude-*`, `opus`, `sonnet`, `haiku`)
64
+ 3. Routes all of them to your specified target model
65
+
66
+ ```env
67
+ PROXY_TARGET_MODEL=accounts/fireworks/models/glm-5
68
+ ```
69
+
70
+ **Manual setup (without wizard):**
71
+
72
+ ```bash
73
+ # Create .env in your project directory
74
+ cat > .env << 'EOF'
75
+ FIREWORKS_API_KEY=fw_your_key
76
+ PORT=8765
77
+ PROXY_URL=http://localhost:8765/v1
78
+ PROXY_API_KEY=fw_your_key
79
+ GATEWAY_URL=https://api.fireworks.ai/inference/v1/
80
+ GATEWAY_API_KEY=fw_your_key
81
+ PROXY_TARGET_MODEL=accounts/fireworks/models/glm-5
82
+ GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token
83
+ GITHUB_REPOSITORY=owner/repo
84
+ EOF
85
+ ```
86
+
39
87
  ### Commands
40
88
 
41
89
  ```bash
@@ -57,7 +105,7 @@ The post-install script downloads platform-specific binaries from GitHub Release
57
105
  | `agentflow-setup` | Interactive TUI setup wizard |
58
106
  | `agentflow-dashboard` | Real-time monitoring TUI |
59
107
  | `agentflow-doctor` | System diagnostics tool |
60
- | `anthropic-proxy` | Built-in Anthropic-to-OpenAI proxy |
108
+ | `anthropic-proxy` | Built-in Anthropic-to-OpenAI protocol translator (auto-starts for Fireworks) |
61
109
 
62
110
  Additionally:
63
111
  - **mcp-proxy** is installed via npm for GitHub MCP connectivity
@@ -73,9 +121,10 @@ GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxxxx
73
121
  GITHUB_REPOSITORY=owner/repo-name
74
122
 
75
123
  # Choose one API provider
76
- FIREWORKS_API_KEY=fw_xxxxx # Recommended - direct mode
77
- # ANTHROPIC_API_KEY=sk-ant-xxxx # Direct mode
78
- # GATEWAY_URL=... # Proxy auto-starts
124
+ FIREWORKS_API_KEY=fw_xxxxx # Recommended proxy auto-starts
125
+ PROXY_TARGET_MODEL=accounts/fireworks/models/glm-5 # Target model for Fireworks
126
+ # ANTHROPIC_API_KEY=sk-ant-xxxx # Direct mode (no proxy needed)
127
+ # GATEWAY_URL=... # Custom gateway (proxy auto-starts)
79
128
  # GATEWAY_API_KEY=... # For custom gateways
80
129
  ```
81
130
 
@@ -113,6 +162,20 @@ openflows
113
162
 
114
163
  ## Troubleshooting
115
164
 
165
+ ### Fireworks Setup — Missing PROXY_TARGET_MODEL
166
+
167
+ If you selected Fireworks AI during setup but didn't see the model configuration screen, ensure you're using version **0.1.15** or later. Earlier versions only showed proxy config in Advanced mode.
168
+
169
+ ```bash
170
+ openflows --version
171
+ # Should show 0.1.15 or later
172
+ ```
173
+
174
+ If you're on an older version:
175
+ ```bash
176
+ npm update -g @the-agenticflow/openflows
177
+ ```
178
+
116
179
  ### `mcp-proxy` Installation Issues
117
180
 
118
181
  The post-install script attempts to install `mcp-proxy` (Python tool from PyPI) automatically. If you see errors:
package/bin/agentflow-bin CHANGED
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-agenticflow/openflows",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Autonomous AI development team — turns GitHub issues into working PRs",
5
5
  "main": "index.js",
6
6
  "bin": {