-
Notifications
You must be signed in to change notification settings - Fork 1
feat(dev): align local dev stack with AI Gateway v0.5 + key-manager UI dev mode #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5272437
feat(dev): align local dev stack with AI Gateway v0.5 and add key-man…
dcmcand f6aeefa
fix(operator): emit BackendTLSPolicy as v1 for the PassthroughModel u…
dcmcand 6f4ffe3
fix(dev): grant key-manager RBAC to list passthroughmodels
dcmcand 7367fb5
feat(dev): add `make run-dev` one-command UI dev environment with hot…
dcmcand 79bf2d0
fix(dev): harden local dev stack for Helm 4 and the webhook startup race
dcmcand caa78be
Merge branch 'main' into feat/local-dev-passthrough-and-ui-devmode
dcmcand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| CLAUDE.md | ||
| docs/superpowers/ | ||
| .claude/ | ||
|
|
||
| # Local dev secrets (OPENROUTER_API_KEY, etc.) | ||
| .env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Copy to dev/.env and fill in. dev/.env is gitignored. | ||
| # | ||
| # OpenRouter API key (https://openrouter.ai/keys). Used as the upstream | ||
| # provider credential for the PassthroughModels that `make run-dev` deploys. | ||
| OPENROUTER_API_KEY= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Envoy Gateway Helm values that wire in the Envoy AI Gateway ext_proc | ||
| # extension. Mirrors docs/install-production.md section 6.1, which sources | ||
| # these from envoyproxy/ai-gateway's manifests/envoy-gateway-values.yaml. | ||
| # | ||
| # - extensionApis.enableBackend lets HTTPRoutes reference InferencePool. | ||
| # - extensionManager points envoy-gateway at the AI Gateway controller's XDS | ||
| # extension server (port 1063) so it inserts the ext_proc filter. | ||
| # - backendResources lists the non-builtin backend kinds the extension handles. | ||
| config: | ||
| envoyGateway: | ||
| gateway: | ||
| controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
| extensionApis: | ||
| enableEnvoyPatchPolicy: true | ||
| enableBackend: true | ||
| extensionManager: | ||
| hooks: | ||
| xdsTranslator: | ||
| translation: | ||
| listener: { includeAll: true } | ||
| route: { includeAll: true } | ||
| cluster: { includeAll: true } | ||
| secret: { includeAll: true } | ||
| post: | ||
| - Translation | ||
| - Cluster | ||
| - Route | ||
| service: | ||
| fqdn: | ||
| hostname: ai-gateway-controller.envoy-ai-gateway-system.svc.cluster.local | ||
| port: 1063 | ||
| backendResources: | ||
| - group: inference.networking.k8s.io | ||
| kind: InferencePool | ||
| version: v1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Three OpenRouter passthrough models for the local dev environment, applied by | ||
| # `make run-dev` so the key-manager UI has a populated model list to work with. | ||
| # Each is its own PassthroughModel so the UI lists three distinct models. | ||
| # | ||
| # Note: API keys are currently gateway-scoped, not model-scoped (see | ||
| # nebari-dev/llm-serving-pack#116), so a key minted for one of these works for | ||
| # all of them. That does not affect UI development. | ||
| apiVersion: llm.nebari.dev/v1alpha1 | ||
| kind: PassthroughModel | ||
| metadata: | ||
| name: claude-sonnet-45 | ||
| namespace: llm-operator-system | ||
| spec: | ||
| provider: | ||
| hostname: openrouter.ai | ||
| schemaVersion: api/v1 | ||
| credentialSecretName: openrouter-api-key | ||
| models: | ||
| catchAll: false | ||
| declared: | ||
| - anthropic/claude-sonnet-4.5 | ||
| access: | ||
| groups: | ||
| - llm | ||
| --- | ||
| apiVersion: llm.nebari.dev/v1alpha1 | ||
| kind: PassthroughModel | ||
| metadata: | ||
| name: gemini-25-flash | ||
| namespace: llm-operator-system | ||
| spec: | ||
| provider: | ||
| hostname: openrouter.ai | ||
| schemaVersion: api/v1 | ||
| credentialSecretName: openrouter-api-key | ||
| models: | ||
| catchAll: false | ||
| declared: | ||
| - google/gemini-2.5-flash | ||
| access: | ||
| groups: | ||
| - llm | ||
| --- | ||
| apiVersion: llm.nebari.dev/v1alpha1 | ||
| kind: PassthroughModel | ||
| metadata: | ||
| name: llama-33-70b | ||
| namespace: llm-operator-system | ||
| spec: | ||
| provider: | ||
| hostname: openrouter.ai | ||
| schemaVersion: api/v1 | ||
| credentialSecretName: openrouter-api-key | ||
| models: | ||
| catchAll: false | ||
| declared: | ||
| - meta-llama/llama-3.3-70b-instruct | ||
| access: | ||
| groups: | ||
| - llm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # OpenRouter PassthroughModel for the local dev cluster. | ||
| # | ||
| # Prereq: the provider credential Secret. Create it with: | ||
| # make create-openrouter-secret OPENROUTER_API_KEY=sk-or-v1-... | ||
| # | ||
| # Once reconciled (kubectl -n llm-operator-system get passthroughmodel), reach | ||
| # it through the gateway. The external endpoint uses API-key auth, so inject a | ||
| # client key into the api-keys Secret to skip the key-manager: | ||
| # kubectl -n llm-operator-system patch secret openrouter-api-keys --type merge \ | ||
| # -p '{"stringData":{"localtester":"sk-localtest-abc123"}}' | ||
| # kubectl -n envoy-gateway-system port-forward svc/envoy-...-nebari-gateway 8443:443 & | ||
| # curl -k https://llm.local:8443/v1/chat/completions \ | ||
| # --resolve llm.local:8443:127.0.0.1 \ | ||
| # -H "Authorization: Bearer sk-localtest-abc123" -H "Content-Type: application/json" \ | ||
| # -d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}' | ||
| apiVersion: llm.nebari.dev/v1alpha1 | ||
| kind: PassthroughModel | ||
| metadata: | ||
| name: openrouter | ||
| namespace: llm-operator-system # per #59 lives in the operator namespace | ||
| spec: | ||
| provider: | ||
| hostname: openrouter.ai | ||
| # OpenRouter serves the OpenAI API under /api/v1. | ||
| schemaVersion: api/v1 | ||
| credentialSecretName: openrouter-api-key | ||
| models: | ||
| catchAll: true | ||
| declared: | ||
| - openai/gpt-4o-mini | ||
| access: | ||
| groups: | ||
| - llm |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.