Skip to main content

bp-agent

For the developer's vision and thoughts behind this project, see HUMANS.md.

Minimal task execution agent framework with multi-provider LLM support.

Features

  • Multi-provider: Gemini, Codex (OpenAI), Opus with automatic key rotation
  • Streaming: Real-time token streaming for chat responses
  • Tool system: Built-in tools (bash, read_file, write_file, list_dir) + custom tools
  • Subagents: Spawn worker agents for parallel task execution
  • Chat mode: Multi-turn conversation with tool support
  • Task queue: Persistent JSON-based task scheduling

Install

pip install bp-agent

Quick Start

# Set API key
export GEMINI_API_KEY=your_key

# Interactive chat (streaming)
bp-chat

# Chat with a specific provider
bp-chat --provider codex
bp-chat --provider opus --model my-model

Providers

Provider Env Vars Models
Gemini (default) GEMINI_API_KEY gemini-3-flash-preview, gemini-3-pro-preview
Codex CODEX_API_KEY or ~/.codex/auth.json gpt-5.2-codex, gpt-5.1-codex-mini, ...
Opus OPUS_API_KEY + OPUS_BASE_URL configurable

Multiple keys supported via GEMINI_API_KEY_2, _3, etc. or comma-separated GEMINI_API_KEYS.

Python API

from bp_agent import Agent, AgentConfig

# Task execution
agent = Agent("my-agent")
result = agent.execute("List all Python files in src/")
print(result.output)

# Multi-turn chat
response = agent.chat("What files are in this directory?")
print(response)

# Streaming chat
for chunk in agent.chat_stream("Explain this codebase"):
    print(chunk, end="", flush=True)

# Custom tools
from bp_agent.tools import ToolSchema
agent.add_tool("greet", lambda name: f"Hello, {name}!", ToolSchema(
    name="greet",
    description="Greet someone",
    parameters={"type": "object", "properties": {"name": {"type": "string"}}, "required": ["name"]},
))

License

GPL-3.0

Metadata

Release files for bp-agent 0.5.1

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

Source distribution (sdist)

Source distribution for bp-agent 0.5.1
File Size Uploaded Provenance
bp_agent-0.5.1.tar.gz 55.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bp-agent 0.5.1
File Interpreter ABI Platform
bp_agent-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 112.3 kB

Release files / bp_agent-0.5.1.tar.gz

Download URL bp_agent-0.5.1.tar.gz
Size 55.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1e613062a0be82e6ff90e6d07fe89a4dd235737b5b1871ec41369d2b4e4938a5
BLAKE2b-256 checksum
How to use checksums
8904a2dddd06456480aa2a4c4ec2ab2c0eb80b1961278e956749432bc2edeed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / bp_agent-0.5.1-py3-none-any.whl

Download URL bp_agent-0.5.1-py3-none-any.whl
Size 57.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f244b35e11ea44efaefe2b1061ceae046ce3c598dd972c83ba19168b8906cc5
BLAKE2b-256 checksum
How to use checksums
d6d4d7e0f7f7af4231bdbcdcce1d20240032837e6092d7122b04aecbdbf3cd82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for bp-agent 0.5.1

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.

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