Skip to content

Fetch org gateway_api_url before launch#120

Merged
CLEMENTINATOR merged 8 commits into
mainfrom
feat/gateway-api-url
Jun 26, 2026
Merged

Fetch org gateway_api_url before launch#120
CLEMENTINATOR merged 8 commits into
mainfrom
feat/gateway-api-url

Conversation

@CLEMENTINATOR

Copy link
Copy Markdown
Member

The CLI now routes coding agents through the gateway configured for the org in the console, instead of always using the built-in default.

At launch it resolves the gateway base URL with this precedence:
EDGEE_API_URL env > profile gateway_url > org's gateway_api_url (fetched fresh via GET /v1/organizations/:id) > built-in default.

The org fetch is best-effort — any failure falls through to the next source, so launch never breaks. Wired into all launch commands (claude/codex/crush/opencode).

@CLEMENTINATOR CLEMENTINATOR requested a review from a team as a code owner June 25, 2026 15:39
The org's console-configured gateway_api_url is now authoritative when set;
the local override (EDGEE_API_URL / profile gateway_url) applies only as a
fallback. Also print the resolved gateway URL on launch claude.
@CLEMENTINATOR CLEMENTINATOR merged commit 067b7a0 into main Jun 26, 2026
4 checks passed
@CLEMENTINATOR CLEMENTINATOR deleted the feat/gateway-api-url branch June 26, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant