Skip to main content

lite-agent-sdk

A small, async, provider-agnostic agent SDK for Python. It runs one agent turn at a time. You own the transcript.

Install

uv add lite-agent-sdk

The OpenAI and Anthropic SDKs are installed with the package.

API keys

Pass api_key= to Agent, or set the provider environment variable:

export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-...

Quick start

import asyncio
from datetime import UTC, datetime
from uuid import uuid4

from lite_agent_sdk import Agent, Message


async def main() -> None:
    agent = Agent(
        model="anthropic/claude-haiku-4-5-20251001",
        system_prompt="Be brief.",
    )
    messages = [
        Message(id=str(uuid4()), role="user", content="Hello", created_at=datetime.now(UTC)),
    ]
    result = await agent.run(messages)
    print(result.output)


asyncio.run(main())

model is provider/model-id. Supported providers are openai and anthropic.

Docs

Development

uv sync
make lint
make format
make test

Releases follow docs/releasing.md. Python 3.13 or newer is required.

Metadata

Release files for lite-agent-sdk 0.1.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 lite-agent-sdk 0.1.0
File Size Uploaded Provenance Actions
lite_agent_sdk-0.1.0.tar.gz 68.8 kB Without provenance Details for lite_agent_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lite-agent-sdk 0.1.0
File Interpreter ABI Platform Actions
lite_agent_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for lite_agent_sdk-0.1.0-py3-none-any.whl

Total release size: 87.3 kB

Release files / lite_agent_sdk-0.1.0.tar.gz

Download URL lite_agent_sdk-0.1.0.tar.gz
Size 68.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c8a3a460d194471bc18c32b3ae4e01041ce6413ba72b2fdc76923ac149c10266
BLAKE2b-256 checksum
How to use checksums
56979521f2417617e777b0280cb6f473dce20ea71d4aeada9cd65bdbcccf1bba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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 / lite_agent_sdk-0.1.0-py3-none-any.whl

Download URL lite_agent_sdk-0.1.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f62c2dbc78e6ffdcc1af998614e7b129792a176616bdf37fc6ee56dc610d650
BLAKE2b-256 checksum
How to use checksums
1dca88fdc51d3fb6cabe695ab39a4855300e4cb8be83af2cacc7967c7f73376c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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 lite-agent-sdk 0.1.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.1.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