-
Notifications
You must be signed in to change notification settings - Fork 292
[docs] Self-healing documentation fixes from issue analysis - 2026-03-12 #20716
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -91,6 +91,43 @@ engine: | |||||
|
|
||||||
| Environment variables can also be defined at workflow, job, step, and other scopes. See [Environment Variables](/gh-aw/reference/environment-variables/) for complete documentation on precedence and all 13 env scopes. | ||||||
|
|
||||||
| #### Custom API Endpoints | ||||||
|
|
||||||
| Two environment variables receive special treatment when set in `engine.env`: `OPENAI_BASE_URL` (for `codex`) and `ANTHROPIC_BASE_URL` (for `claude`). When either is present, the AWF sandbox proxy automatically routes API calls to the specified host instead of the default `api.openai.com` or `api.anthropic.com`. Credential isolation and firewall enforcement remain active. | ||||||
|
|
||||||
| This enables workflows to use internal LLM routers, Azure OpenAI deployments, or other OpenAI-compatible endpoints without bypassing AWF's security model. | ||||||
|
|
||||||
| ```yaml wrap | ||||||
| engine: | ||||||
| id: codex | ||||||
| model: gpt-4o | ||||||
| env: | ||||||
| OPENAI_BASE_URL: "https://llm-router.internal.example.com/v1" | ||||||
| OPENAI_API_KEY: ${{ secrets.LLM_ROUTER_KEY }} | ||||||
|
|
||||||
| network: | ||||||
| allowed: | ||||||
| - github.com | ||||||
| - llm-router.internal.example.com # must be listed here for the firewall to permit outbound requests | ||||||
| ``` | ||||||
|
|
||||||
| For Claude workflows routed through a custom Anthropic-compatible endpoint: | ||||||
|
|
||||||
| ```yaml wrap | ||||||
| engine: | ||||||
| id: claude | ||||||
| env: | ||||||
| ANTHROPIC_BASE_URL: "https://anthropic-proxy.internal.example.com" | ||||||
| ANTHROPIC_API_KEY: ${{ secrets.PROXY_API_KEY }} | ||||||
|
|
||||||
| network: | ||||||
| allowed: | ||||||
| - github.com | ||||||
| - anthropic-proxy.internal.example.com | ||||||
| ``` | ||||||
|
|
||||||
| The custom hostname is extracted from the URL and passed to the AWF `--openai-api-target` or `--anthropic-api-target` flag automatically at compile time. No additional configuration is required. | ||||||
|
||||||
| The custom hostname is extracted from the URL and passed to the AWF `--openai-api-target` or `--anthropic-api-target` flag automatically at compile time. No additional configuration is required. | |
| The custom host (including any port) is extracted from the base URL (scheme and path are ignored) and automatically forwarded at compile time as the AWF `--openai-api-target` or `--anthropic-api-target` flag. You may still need to add the extracted host (and port, if applicable) to `network.allowed` so the firewall permits outbound requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The term “AWF sandbox proxy” isn’t used elsewhere in the docs and may be confusing/inconsistent with established terminology (“AWF firewall” / “API proxy sidecar”). Consider renaming this to match existing docs terminology, or add a brief link/clarifier to the network/firewall docs (e.g., docs/src/content/docs/reference/network.md:10,180).