Skip to main content

ampup-harness

Python SDK for AmpUp Harness. Python 3.10+. The core SDK is standard library only; the Agno and Claude Agent SDK adapters are optional extras.

uv add ampup-harness

Point it at a harness with environment variables:

export AMPUP_HARNESS_URL=https://harness.example.com
export AMPUP_HARNESS_API_KEY=...

Agno adapter (ampup_harness.agno)

Code written for Agno runs on the harness after changing from agno. to from ampup_harness.agno. in its imports. It is your installed Agno, unmodified, with one change: every model call goes to the harness gateway, which meters spend per key and serves any OpenRouter model.

uv add 'ampup-harness[agno]'      # ampup-harness + agno + the OpenAI and Anthropic SDKs
export AMPUP_HARNESS_URL=https://harness.example.com
export AMPUP_HARNESS_API_KEY=...
from ampup_harness.agno.agent import Agent
from ampup_harness.agno.models.openai import OpenAIChat
from ampup_harness.agno.team import Team

agent = Agent(model=OpenAIChat(id="gpt-5"), instructions="Be terse.", markdown=True)
agent.print_response("Share a two-line story.", stream=True)
  • Agents, teams, workflows, tools and Agno's prebuilt toolkits, knowledge, memory, storage, structured outputs and streaming are Agno's own code, at the version you installed.
  • Claude calls the harness's Anthropic-compatible /v1/messages; OpenAIChat and every OpenAILike model (OpenRouter, DeepSeek, xAI, …) call its OpenAI-compatible /v1/chat/completions. Other providers (Gemini, Groq, Mistral, Ollama, Bedrock, Azure, …) are rebuilt as harness-routed OpenAIChat models, with a warning. Model ids become OpenRouter slugs (gpt-5 → openai/gpt-5).
  • Agent and Team also route string models ("openai:gpt-5"), Agno's default model, fallback models, and models built from agno. imports. Agno's own modules are left unchanged, so code that imports agno. directly in the same process still calls the providers.

Claude Agent SDK adapter (ampup_harness.claude_agent_sdk)

Code written for Anthropic's Claude Agent SDK runs on the harness after changing claude_agent_sdk to ampup_harness.claude_agent_sdk in its imports. It is your installed SDK, unmodified; query and ClaudeSDKClient start its Claude Code CLI with the model endpoint set to the harness gateway.

uv add 'ampup-harness[claude-agent-sdk]'
export AMPUP_HARNESS_URL=https://harness.example.com
export AMPUP_HARNESS_API_KEY=...   # a user key with a gateway daily budget; the agent's tools can read it
from ampup_harness.claude_agent_sdk import ClaudeAgentOptions, query

async for message in query(prompt="Fix the failing test", options=ClaudeAgentOptions(model="sonnet")):
    print(message)

Built-in tools, hooks, permissions, MCP servers, subagents and sessions are the SDK's own. Claude ids become OpenRouter slugs (claude-sonnet-5-5 → anthropic/claude-sonnet-5.5), the aliases sonnet/opus/haiku/fable map to current models (override with AMPUP_HARNESS_MODEL_<ALIAS>), and any slug works, including non-Claude models (openai/gpt-5). See docs/claude-agent-sdk-compat.md.

Agno's API without Agno (ampup_harness.agno_lite)

ampup_harness.agno_lite reimplements the most used parts of Agno's API with no dependencies, and can run agents server-side as harness agent templates (sessions, memory blocks and harness tools live on the harness). It covers less than the adapter: no Team, knowledge, structured outputs or prebuilt toolkits. See docs/agno-compat.md.

Low-level client

from ampup_harness import HarnessConfig, HarnessError

config = HarnessConfig.from_env()  # AMPUP_HARNESS_URL, AMPUP_HARNESS_API_KEY

Use HTTPS beyond trusted loopback. Credentials stay in headers, redirects are refused, and URLs carrying credentials, a query or a fragment are rejected.

License: Apache-2.0.

Metadata

Release files for ampup-harness 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ampup-harness 0.2.0
File Size Uploaded Provenance Actions
ampup_harness-0.2.0.tar.gz 43.2 kB Without provenance Details for ampup_harness-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ampup-harness 0.2.0
File Interpreter ABI Platform Actions
ampup_harness-0.2.0-py3-none-any.whl Python 3 none any Details for ampup_harness-0.2.0-py3-none-any.whl

Total release size: 104.1 kB

Release files / ampup_harness-0.2.0.tar.gz

Download URL ampup_harness-0.2.0.tar.gz
Size 43.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2b39b3c378b8aa5b481f0018743624bcf964bb55ea8edcd8b352cf306d0307ea
BLAKE2b-256 checksum
How to use checksums
bc0ce6a9d68d2fac1e73109b08ebe477032190824368bf3621c722e73a2c634e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ampup_harness-0.2.0-py3-none-any.whl

Download URL ampup_harness-0.2.0-py3-none-any.whl
Size 60.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
050ebbe6e99322e831d974afaec80665b80d00beb01990bd141740b2f8d736fa
BLAKE2b-256 checksum
How to use checksums
c6503503410044afa41ad46fe3b286c9f37d9f9e3b3986b9474af8e333d3bec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ampup-harness 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page