Repository navigation
fix: send the agent key as a Bearer credential from Python AgentClient - #119
Merged
Merged
Conversation
The Agent Execution API (hosted API channels and serve apps) reads only `Authorization: Bearer <credential>`, as specs/agent-client.md says and the TypeScript and Rust clients already do. Python sent the bare key, so every call past the public card failed with 401. The TypeScript SSE stream no longer prints connection diagnostics to stdout unless EVERRUNS_SDK_DEBUG is set.
This was referenced Oct 11, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
AgentClient0.3.0 sentAuthorization: <key>with no scheme. Both the hosted Agent API channel and serve read onlyAuthorization: Bearer <credential>, so every call after the public card failed:AuthenticationError: ... 'a valid bearer credential is required', 'status': 401.Bearer <credential>, asspecs/agent-client.mdspecifies and the TypeScript and Rust clients already do. The tests that pinned the bare header now assert the Bearer form.EVERRUNS_SDK_DEBUGis set, so a CLI script's output stays clean.Test Plan
uv run pytest: 203 passed.npm test: 190 passed. ruff, prettier, oxlint andjust pre-pushare clean.SERVE_API_KEYSon and a real model (gpt-6.1-sol): 0.3.0 Python fails with the 401 above. Patched Python prints "Order 42 shipped on October 9 via UPS and is expected to arrive October 13."Checklist
Generated by Claude Code