Skip to content

Commit 4905df1

Browse files
danielmillerpclaude
andcommitted
Switch agent templates from OPENAI_API_KEY to LITELLM_API_KEY
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3a60add commit 4905df1

21 files changed

Lines changed: 158 additions & 34 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# {{ agent_name }} - Environment Variables
2+
# Copy this file to .env and fill in the values
3+
4+
# LiteLLM API key for Scale's internal LLM proxy
5+
# Request at: http://go/litellm-key-request
6+
LITELLM_API_KEY=
7+
8+
# LiteLLM proxy base URL (default: Scale internal proxy)
9+
# OPENAI_BASE_URL=https://litellm-proxy.ml-serving-internal.scale.com/v1
10+
11+
# SGP Configuration (for tracing)
12+
# SGP_API_KEY=
13+
# SGP_ACCOUNT_ID=
14+
15+
# AWS Dev: SGP_BASE_URL=https://api.dev-sgp.scale.com SGP_ACCOUNT_ID=68754be7ac3f41b875f912a1
16+
# Azure Dev: SGP_BASE_URL=https://api.agentex.azure.workspace.egp.scale.com/ SGP_ACCOUNT_ID=6887f093600ecd59bbbd3095
17+
# Staging: SGP_BASE_URL=https://api.staging-sgp.scale.com SGP_ACCOUNT_ID=6877d19c4c014d981bdc044c

src/agentex/lib/cli/templates/default-langgraph/README.md.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ TOOLS = [my_tool]
7474
Edit `project/graph.py` to modify the model, system prompt, or graph structure.
7575

7676
### 3. Configure Credentials
77-
Set your OpenAI API key:
78-
1. In `manifest.yaml` under `env.OPENAI_API_KEY`
79-
2. Or export: `export OPENAI_API_KEY=...`
77+
Set your LiteLLM API key (http://go/litellm-key-request):
78+
1. In `manifest.yaml` under `env.LITELLM_API_KEY`
79+
2. Or export: `export LITELLM_API_KEY=...`
8080
3. Or create a `.env` file in the project directory
8181

8282
### 4. Run Locally

src/agentex/lib/cli/templates/default-langgraph/manifest.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ agent:
7676
# Maps Kubernetes secrets to environment variables
7777
# Common credentials include:
7878
credentials:
79-
- env_var_name: OPENAI_API_KEY
80-
secret_name: openai-api-key
79+
- env_var_name: LITELLM_API_KEY
80+
secret_name: litellm-api-key
8181
secret_key: api-key
8282
- env_var_name: SGP_API_KEY
8383
secret_name: sgp-api-key
@@ -89,7 +89,7 @@ agent:
8989
# Optional: Set Environment variables for running your agent locally as well
9090
# as for deployment later on
9191
env:
92-
OPENAI_API_KEY: "" # Set your OpenAI API key
92+
LITELLM_API_KEY: "" # Set your LiteLLM API key (http://go/litellm-key-request)
9393
# OPENAI_BASE_URL: "<YOUR_OPENAI_BASE_URL_HERE>"
9494

9595
# Deployment Configuration
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# {{ agent_name }} - Environment Variables
2+
# Copy this file to .env and fill in the values
3+
4+
# LiteLLM API key for Scale's internal LLM proxy
5+
# Request at: http://go/litellm-key-request
6+
LITELLM_API_KEY=
7+
8+
# LiteLLM proxy base URL (default: Scale internal proxy)
9+
# OPENAI_BASE_URL=https://litellm-proxy.ml-serving-internal.scale.com/v1
10+
11+
# SGP Configuration (for tracing)
12+
# SGP_API_KEY=
13+
# SGP_ACCOUNT_ID=
14+
15+
# AWS Dev: SGP_BASE_URL=https://api.dev-sgp.scale.com SGP_ACCOUNT_ID=68754be7ac3f41b875f912a1
16+
# Azure Dev: SGP_BASE_URL=https://api.agentex.azure.workspace.egp.scale.com/ SGP_ACCOUNT_ID=6887f093600ecd59bbbd3095
17+
# Staging: SGP_BASE_URL=https://api.staging-sgp.scale.com SGP_ACCOUNT_ID=6877d19c4c014d981bdc044c

src/agentex/lib/cli/templates/default/README.md.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pip install -r requirements.txt
139139
### 4. Configure Credentials
140140
Options:
141141
1. Add any required credentials to your manifest.yaml via the `env` section
142-
2. Export them in your shell: `export OPENAI_API_KEY=...`
142+
2. Export them in your shell: `export LITELLM_API_KEY=...`
143143
3. For local development, create a `.env.local` file in the project directory
144144

145145
```python

src/agentex/lib/cli/templates/default/manifest.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ agent:
8080
secret_name: redis-url-secret
8181
secret_key: url
8282
# credentials:
83-
# - env_var_name: OPENAI_API_KEY
84-
# secret_name: openai-api-key
83+
# - env_var_name: LITELLM_API_KEY
84+
# secret_name: litellm-api-key
8585
# secret_key: api-key
8686

8787
# Optional: Set Environment variables for running your agent locally as well
8888
# as for deployment later on
8989
env: {}
90-
# OPENAI_API_KEY: "<YOUR_OPENAI_API_KEY_HERE>"
90+
# LITELLM_API_KEY: "<YOUR_LITELLM_API_KEY_HERE>"
9191
# OPENAI_BASE_URL: "<YOUR_OPENAI_BASE_URL_HERE>"
9292
# OPENAI_ORG_ID: "<YOUR_OPENAI_ORG_ID_HERE>"
9393

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# {{ agent_name }} - Environment Variables
2+
# Copy this file to .env and fill in the values
3+
4+
# LiteLLM API key for Scale's internal LLM proxy
5+
# Request at: http://go/litellm-key-request
6+
LITELLM_API_KEY=
7+
8+
# LiteLLM proxy base URL (default: Scale internal proxy)
9+
# OPENAI_BASE_URL=https://litellm-proxy.ml-serving-internal.scale.com/v1
10+
11+
# SGP Configuration (for tracing)
12+
# SGP_API_KEY=
13+
# SGP_ACCOUNT_ID=
14+
15+
# AWS Dev: SGP_BASE_URL=https://api.dev-sgp.scale.com SGP_ACCOUNT_ID=68754be7ac3f41b875f912a1
16+
# Azure Dev: SGP_BASE_URL=https://api.agentex.azure.workspace.egp.scale.com/ SGP_ACCOUNT_ID=6887f093600ecd59bbbd3095
17+
# Staging: SGP_BASE_URL=https://api.staging-sgp.scale.com SGP_ACCOUNT_ID=6877d19c4c014d981bdc044c

src/agentex/lib/cli/templates/sync-langgraph/README.md.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ TOOLS = [my_tool]
7272
Edit `project/graph.py` to modify the model, system prompt, or graph structure.
7373

7474
### 3. Configure Credentials
75-
Set your OpenAI API key:
76-
1. In `manifest.yaml` under `env.OPENAI_API_KEY`
77-
2. Or export: `export OPENAI_API_KEY=...`
75+
Set your LiteLLM API key (http://go/litellm-key-request):
76+
1. In `manifest.yaml` under `env.LITELLM_API_KEY`
77+
2. Or export: `export LITELLM_API_KEY=...`
7878
3. Or create a `.env` file in the project directory
7979

8080
### 4. Run Locally

src/agentex/lib/cli/templates/sync-langgraph/manifest.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ agent:
7575
# Maps Kubernetes secrets to environment variables
7676
# Common credentials include:
7777
credentials:
78-
- env_var_name: OPENAI_API_KEY
79-
secret_name: openai-api-key
78+
- env_var_name: LITELLM_API_KEY
79+
secret_name: litellm-api-key
8080
secret_key: api-key
8181
- env_var_name: SGP_API_KEY
8282
secret_name: sgp-api-key
@@ -85,7 +85,7 @@ agent:
8585
# Optional: Set Environment variables for running your agent locally as well
8686
# as for deployment later on
8787
env:
88-
OPENAI_API_KEY: "" # Set your OpenAI API key
88+
LITELLM_API_KEY: "" # Set your LiteLLM API key (http://go/litellm-key-request)
8989
# OPENAI_BASE_URL: "<YOUR_OPENAI_BASE_URL_HERE>"
9090

9191

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# {{ agent_name }} - Environment Variables
2+
# Copy this file to .env and fill in the values
3+
4+
# LiteLLM API key for Scale's internal LLM proxy
5+
# Request at: http://go/litellm-key-request
6+
LITELLM_API_KEY=
7+
8+
# LiteLLM proxy base URL (default: Scale internal proxy)
9+
# OPENAI_BASE_URL=https://litellm-proxy.ml-serving-internal.scale.com/v1
10+
11+
# SGP Configuration (for tracing)
12+
# SGP_API_KEY=
13+
# SGP_ACCOUNT_ID=
14+
15+
# AWS Dev: SGP_BASE_URL=https://api.dev-sgp.scale.com SGP_ACCOUNT_ID=68754be7ac3f41b875f912a1
16+
# Azure Dev: SGP_BASE_URL=https://api.agentex.azure.workspace.egp.scale.com/ SGP_ACCOUNT_ID=6887f093600ecd59bbbd3095
17+
# Staging: SGP_BASE_URL=https://api.staging-sgp.scale.com SGP_ACCOUNT_ID=6877d19c4c014d981bdc044c

0 commit comments

Comments
 (0)