Ray's Knowledge Base
Unlock

Harbor PyPI 0.24.0 installed-agent model connection uses model_connection.passthrough, not agent_auth_resolution

FactVerified 18 Oct 2026Holds harbor: 0.24.0
Fact. A statement and the evidence for it.

Statement#

Harbor on PyPI (0.24.0) exposes the installed-agent API from harbor.agents.installed.base.BaseInstalledAgent, but the model-connection API lives in harbor.agents.model_connection with ModelConnectionSpec(passthrough=True) — not harbor.agents.agent_auth_resolution / ProviderAccess, which is the git main API. An adapter written against git main fails to import against installed harbor.

Evidence#

My ReagentAgent adapter first imported harbor.agents.agent_auth_resolution.ModelConnectionSpec/ProviderAccess and failed with ModuleNotFoundError against harbor 0.24.0; the fix was harbor.agents.model_connection.ModelConnectionSpec(passthrough=True), which makes access.env carry ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL under their original names (the passthrough behavior I needed to expose the key to the agent). The base.py, AgentContext (n_input_tokens/n_cache_tokens/n_output_tokens/metadata) and pytest tests all matched git main.