Short path: Cheap LLM API · GPT API · OpenAI-compatible API · AI API pricing
Last verified: July 26, 2026
GitHub Agentic Workflows (gh-aw) officially supports a Copilot BYOK mode with an external provider Base URL, API key, model id, provider type and completions or responses wire API. That makes LumeAPI a documented-shape candidate using https://api.lumeapi.site/v1, COPILOT_PROVIDER_TYPE=openai and the completions wire API. Production use still requires a real workflow test because LumeAPI’s current catalog advertises text models on chat/completions and agent tools can expose compatibility gaps.
GitHub’s github/gh-aw repository was public, MIT licensed and had 4,809 stars when checked July 26, 2026. LumeAPI is not affiliated with GitHub.
Quick answer
| Question | Answer |
|---|---|
| Does gh-aw support external model endpoints? | Yes, through Copilot BYOK and custom endpoint settings |
| Candidate LumeAPI Base URL | https://api.lumeapi.site/v1 |
| Provider format | openai |
| Wire API matching the current LumeAPI catalog | completions |
| Is configuration alone proof? | No; compile, threat-detection, tool and usage tests are required |
In short
GitHub Agentic Workflows (gh-aw) officially supports a Copilot BYOK mode with an external provider Base URL, API key, model id, provider type and completions or responses wire API. That makes LumeAPI a documented-shape candidate using https://api.lumeapi.site/v1, COPILOT_PROVIDER_TYPE=openai and the completions wire API.
How gh-aw fits into CI
GitHub Agentic Workflows lets repository owners write natural-language workflow instructions in Markdown and compile them into locked GitHub Actions workflows. Supported engines include Copilot, Claude, Codex and Gemini. Tools are exposed through controlled mechanisms including MCP, while write operations are designed to flow through sanitized safe outputs.
Issue / schedule / pull request event
↓
compiled gh-aw workflow
↓
coding-agent engine + tools
↓
LumeAPI BYOK model calls
↓
safe output, review gate and branch rulesThe agent does not replace Actions permissions. Repository permissions, network allowlists, branch protection and human approval remain independent controls.
Candidate BYOK configuration
A gh-aw workflow can place provider variables under the Copilot engine environment. Store the key in GitHub Actions secrets:
engine:
id: copilot
env:
COPILOT_PROVIDER_BASE_URL: https://api.lumeapi.site/v1
COPILOT_PROVIDER_API_KEY: ${{ secrets.LUMEAPI_API_KEY }}
COPILOT_PROVIDER_TYPE: openai
COPILOT_PROVIDER_WIRE_API: completions
COPILOT_MODEL: gpt-5.6-terraGitHub documents those BYOK credential variables as allowed secret references under strict mode and says they are not exposed to the agent container. When a literal provider URL is used, gh-aw automatically adds its hostname to the workflow allowlist; if the URL comes from a secret or expression, configure network.allowed explicitly.
Do not use RESEARCH_INGEST_SECRET here. Create a scoped LumeAPI model key for the repository or environment.
Why not select Responses automatically?
gh-aw supports a responses wire option for GPT-5-series providers, but the current LumeAPI catalog labels these routes chat/completions. Selecting Responses without endpoint verification can break before the agent starts. Use completions only as a current candidate and re-test when gh-aw, Copilot CLI or LumeAPI changes.
This is the same lifecycle risk described in the Codex custom-provider guide.
Cost per workflow run
Assume a bounded triage or small code workflow uses 30,000 input and 5,000 output tokens:
| Route | LumeAPI rate per 1M in/out | Calculated run cost | 100 runs |
|---|---|---|---|
| GPT-5.4 mini | $0.225 / $1.35 | $0.0135 | $1.35 |
| GPT-5.6 Terra | $0.75 / $4.50 | $0.0450 | $4.50 |
| GPT-5.6 Sol | $1.50 / $9.00 | $0.0900 | $9.00 |
| Claude Sonnet 4.6 | $1.50 / $7.50 | $0.0825 | $8.25 |
This table covers model tokens only. GitHub Actions minutes, artifact storage and third-party tools are separate. A 20% retry overhead raises 100 Terra runs from $4.50 to $5.40.
CI guardrails
- Pin gh-aw and generated workflow dependencies.
- Avoid releases 0.68.4–0.71.3, which the project says are being retired because of a billing-impacting bug.
- Keep default permissions read-only.
- Use safe outputs for writes.
- Restrict network destinations and tools.
- Set workflow timeout and model/task limits.
- Require human approval for pull requests or sensitive changes.
- Correlate workflow run id with LumeAPI request and usage records.
- Fail closed when the selected model or wire API becomes unavailable.
Production scenario
A repository may run 2,000 issue-triage workflows per month. At the bounded mini scenario, calculated model cost is $27. If 10% of issues escalate to an additional Terra run using the same token assumption, that adds $9, for a $36 model total before retries.
The economic value depends on correct labels, useful comments and avoided reviewer time. Measure accepted or acted-on outputs, not workflow executions alone.
Use coding-agent cost per PR for delivery-level allocation and the 429/retry guide for provider-failure behavior.
What most guides get wrong
An external Base URL does not mean unrestricted network access. gh-aw compiles security policy and threat-detection behavior around the workflow. Another mistake is placing model keys in Markdown or normal environment text instead of Actions secrets. Finally, a green compilation is not a successful model/tool run.
A realistic production scenario
A six-person platform team standardized on one premium model for Can GitHub Agentic Workflows Use LumeAPI for BYOK Model Calls? after a strong demo score. Early invoices looked fine; by week three, failing test loops had doubled input tokens without more accepted output.
They kept the orchestrator but tightened routing: a lower-cost catalog model handled exploration, a mid-tier model handled implementation, and premium routes required a logged failure condition. They truncated test logs and stopped attaching full diffs on every retry.
The breakthrough was reconciling LumeAPI usage records with task ids. Token list price mattered less than eliminating duplicate context across retries.
Expert take
LumeAPI is an independent third-party OpenAI-compatible gateway—not OpenAI, Anthropic, or Google. Published catalog rates can be materially below official reference pricing, but compatibility does not guarantee identical behavior for every native feature, streaming edge case, tool schema, Batch workflow, or prompt-cache semantics.
Follow this advice when you control prompts, retries, and routing and need auditable USD billing across GPT, Claude, and Gemini on one key. Do not cut over blindly if you depend on provider-native capabilities your stack has not tested end to end.
Run a bounded smoke test on your exact SDK, model id, streaming mode, and tool path; reconcile usage logs with orchestrator task ids; and keep a fallback route until error rates and latency are acceptable.
FAQ
Is gh-aw the same as a normal GitHub Actions YAML file?
Authors write agentic Markdown and compile it into locked workflow YAML, but execution still happens within GitHub Actions controls.
Can gh-aw use a custom OpenAI-compatible endpoint?
Its Copilot BYOK documentation explicitly supports external provider Base URLs and OpenAI provider format. The exact endpoint still needs runtime testing.
Which LumeAPI model should triage issues?
Start with mini for bounded classification and use Terra or Sol only when the workflow’s quality evaluation justifies escalation.
Does BYOK expose the API key to the agent?
GitHub documents the designated BYOK credential variables as protected under strict mode; repository owners must still configure secrets correctly.
Sources and evidence boundary
- GitHub Agentic Workflows repository
- gh-aw AI Engines and BYOK reference
- How GitHub Agentic Workflows work
- LumeAPI model catalog
No billable gh-aw-to-LumeAPI workflow was executed for this report. The configuration is based on the official BYOK contract and must pass a repository-scoped smoke test.