You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,16 +219,18 @@ This ensures the agent can write to `/tmp` for tax document processing without r
219
219
220
220
### Environment Variables
221
221
222
-
**Agent Server (`packages/tax-processing/.env`):**
222
+
**Agent Server (`packages/tax-processing/.env`) - Local Development Only:**
223
223
```env
224
224
PORT=3001
225
225
FRONTEND_URL=http://localhost:3000
226
226
OPENAI_API_KEY=your-api-key-here
227
227
228
-
# Optional: Weights & Biases Weave for LLM tracing
228
+
# Optional: Weights & Biases Weave for LLM tracing (local dev only)
229
229
WANDB_API_KEY=your-wandb-api-key-here
230
230
```
231
231
232
+
**Note**: When running on Runloop devboxes, API keys must be configured as Runloop secrets, not local environment variables. The `OPENAI_API_KEY` and `WANDB_API_KEY` secrets are automatically injected into devboxes from the Runloop secret store.
233
+
232
234
**Frontend (`packages/frontend/.env.local`):**
233
235
```env
234
236
NEXT_PUBLIC_AGENT_URL=http://localhost:3001
@@ -244,7 +246,14 @@ GITHUB_TOKEN=your-token-here # Required for private repos
244
246
245
247
The tax agent integrates with [Weights & Biases Weave](https://docs.wandb.ai/weave/) for comprehensive LLM call tracing and monitoring.
246
248
247
-
**Setup:**
249
+
**Setup for Runloop Devboxes:**
250
+
1. Get your W&B API key from https://wandb.ai/authorize
251
+
2. Add `WANDB_API_KEY` to Runloop secrets:
252
+
- Option A: Use the Runloop Settings page at https://platform.runloop.ai/settings
253
+
- Option B: Run `pnpm step1_runloop_setup` - it will prompt you to add the secret
254
+
3. When the agent runs on a devbox, Weave initializes automatically if the secret is present
255
+
256
+
**Setup for Local Development:**
248
257
1. Get your W&B API key from https://wandb.ai/authorize
249
258
2. Add `WANDB_API_KEY=your-key` to `packages/tax-processing/.env`
250
259
3. Start the agent server - Weave initializes automatically
@@ -262,7 +271,7 @@ The tax agent integrates with [Weights & Biases Weave](https://docs.wandb.ai/wea
262
271
- Explore traces, latency distributions, and token usage
263
272
264
273
**Configuration:**
265
-
The CodexService automatically initializes Weave if `WANDB_API_KEY` is present. Look for:
274
+
The CodexService automatically initializes Weave if `WANDB_API_KEY` is present in the environment (from Runloop secrets on devboxes, or from local `.env` file). Look for:
266
275
-`[CodexService] Weave tracing initialized successfully` - Weave is active
267
276
-`[CodexService] Weave tracing disabled: WANDB_API_KEY not set` - Running without Weave
Copy file name to clipboardExpand all lines: README.md
+25-16Lines changed: 25 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,9 @@ best. We can perform quick experiments to measure performance after making chang
64
64
65
65
c. Create a Secret for the OpenAI key you just generated in the [https://platform.runloop.ai/settings](settings) page. Name the secret name `OPENAI_API_KEY` and paste the key value from the OpenAI site.
66
66
67
-
d. Now configure your environment:
67
+
d. (Optional) Create a Secret for W&B API key for Weave LLM tracing. Get your W&B API key from [https://wandb.ai/authorize](https://wandb.ai/authorize), then create a secret named `WANDB_API_KEY` in the [https://platform.runloop.ai/settings](settings) page. This enables Weave tracing on Runloop devboxes. Note: The `pnpm step1_runloop_setup` script will also prompt you for this.
0 commit comments