cd /news/developer-tools/republic-0-6-0 · home › topics › developer-tools › article
[ARTICLE · art-153838] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Republic 0.6.0

Republic 0.6.0 released as a Python library that provides one interface for chat, streaming, tool calls, and structured output across AI providers, requiring Python 3.11 or later and installed via `python -m pip install republic`. Models are addressed as `provider:model` (for example `openai:gpt-6-sol`, `anthropic:MODEL_ID`, `google:MODEL_ID`, or `deepseek:MODEL_ID`), with each provider's key read from a `REPUBLIC_<PROVIDER>_API_KEY` environment variable. The library stops at providers, leaving agent loops, tool execution, and gateways in the developer's own code, and offers an optional `Extension` interface for observing call outcomes and retries.

read1 min views1 publishedOct 20, 2026
Republic 0.6.0
Image: Michielbdejong (auto-discovered)

One Python interface for chat, streaming, tool calls, and structured output across AI providers. Republic stops at providers; agent loops, tool execution, and gateways stay in your code.

Republic requires Python 3.11 or later.

python -m pip install republic
export REPUBLIC_OPENAI_API_KEY="your-api-key"
python
import asyncio

import republic
from republic.events import TextDelta

async def main():
    model = republic.get_model("openai:gpt-6-sol")

    response = await model.chat("Explain a tool call in one sentence.")
    print(response.text)

    async with model.stream("Explain how an agent uses a tool result.") as stream:
        async for event in stream:
            if isinstance(event, TextDelta):
                print(event.chunk, end="", flush=True)

asyncio.run(main())

A model is named provider:model. Switch services by changing the name, such as anthropic:MODEL_ID, google:MODEL_ID, or deepseek:MODEL_ID; each reads its key from REPUBLIC_<PROVIDER>_API_KEY. See the provider directory for every supported service.

uv sync
make check
make test
make build

See Contributing for the development workflow.

── more in #developer-tools 4 stories · sorted by recency
── more on @republic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/republic-0-6-0] indexed:0 read:1min 2026-10-20 · —