Skip to main content

Open-source, model-agnostic production runtime for AI agents. Durable sessions, sandbox isolation, and per-model YAML profiles.

Project description

Tename

The open-source production runtime for any agent framework. Durable sessions, sandbox isolation, and per-model YAML profiles — so the same agent code runs well on Claude today and any other model tomorrow.

License: Apache 2.0 Status: v0.1 initial release Python 3.12+


What is Tename?

Tename is an open-source runtime that sits beneath your agent framework — whether that's Deep Agents, Claude Agent SDK, or your own custom code. It provides the infrastructure layer most teams end up rebuilding from scratch:

  • Durable sessions that survive crashes. Kill the process mid-stream, restart, and the agent resumes cleanly from an append-only event log.
  • Per-model optimization via YAML profiles. Same agent code, different model, one config change. Each profile encodes caching strategy, context budget, tool format, and known quirks.
  • Sandbox isolation for LLM-generated code. Docker containers with CPU, memory, and PID limits. Credentials never enter the sandbox.
  • Framework adapters so you bring your existing code. Tename doesn't replace Deep Agents — it makes Deep Agents production-grade.

30-second look

from tename import Tename

with Tename() as client:
    agent = client.agents.create(
        name="coding-agent",
        model="claude-opus-4-6",
        system_prompt="You are a careful software engineer.",
        tools=["python", "bash", "file_read", "file_write"],
    )

    session = client.sessions.create(agent_id=agent.id)

    for event in session.send("Compute the 50th Fibonacci number in Python."):
        if event.type == "assistant_message" and event.payload.get("is_complete"):
            print(event.payload["content"])

When GPT-5 ships a profile, switching models is one field change:

agent = client.agents.create(
    model="gpt-5",   # ← just this
    ...
)

The runtime handles the rest — different caching strategy, different tool format, different context management — all from the YAML profile.

Why Tename exists

Teams building production AI agents face a forced choice:

Option Pros Cons
Proprietary runtimes (Anthropic Managed Agents, AWS Bedrock AgentCore) Production-grade infrastructure Locked to one model provider
Open frameworks (Deep Agents, Claude Agent SDK) Model flexibility, code ownership You build all the infrastructure yourself

Tename is the third option: production-grade infrastructure that works with any model and any framework.

Architecture

Your Code → Python SDK → Harness Runtime → Model Router → Any Provider
                               ↕                ↕
                         Session Service     Sandbox (Docker)
                          (Postgres)            ↕
                                          Tool Proxy + Vault

Three decoupled interfaces (brain, hands, state) that fail and recover independently. See docs/architecture/overview.md.

What's in v0.1

  • Session Service with append-only event log, idempotent writes, and advisory-lock-serialized concurrent emitters
  • Stateless Harness Runtime with crash-safe resume
  • Model Router with Anthropic provider and streaming
  • YAML profile system with inheritance, validation, and a bundled Claude Opus 4.6 profile
  • Docker sandbox with six built-in tools (bash, python, file_read, file_write, file_edit, file_list)
  • Vault (PBKDF2 + Fernet) for encrypted credential storage
  • Tool Proxy that injects credentials at call time — credentials never reach the sandbox or the session log
  • Deep Agents framework adapter
  • Vanilla adapter (no-framework fallback)
  • Python SDK (sync + async)
  • tename vault CLI for credential management
  • 5 benchmark tasks for profile validation
  • 3 worked examples

Coming in v0.2: GPT-5 and Gemini profiles, Claude Agent SDK adapter, summarization compaction, OpenTelemetry tracing, TypeScript SDK.

Getting started

Prerequisites

  • Python 3.12+
  • Docker (for Postgres and the code sandbox)
  • An Anthropic API key

Install

pip install tename

Spin up Postgres and apply the schema

git clone https://github.com/deadLemonX/Tename
cd Tename
make dev         # docker compose up postgres
make migrate     # apply schema

Run the hello-world

export ANTHROPIC_API_KEY=sk-ant-...
python examples/01-hello-world/main.py

See docs/QUICKSTART.md for the full 10-minute walkthrough, including troubleshooting.

Examples

Documentation

Doc What it covers
QUICKSTART Clone → install → running agent in 10 minutes
Product vision What Tename is and why it exists
Principles Non-negotiable architectural commitments
Architecture overview How the system fits together
Profile format YAML profile schema reference
SDK design Python SDK API reference
Deployment Running Tename in production

Contributing

We welcome contributions! The fastest way to contribute is a new model profile — one YAML file. See CONTRIBUTING.md for how to set up the dev environment, run tests, and submit PRs.

How it compares

Tename Anthropic Managed Agents AWS Bedrock AgentCore Deep Agents
Type Open-source runtime Proprietary managed service Proprietary managed service Open-source framework
Models Any Claude only Bedrock catalog Any (no tuning)
Per-model tuning Yes (profiles) Yes (internal) Limited No
Durable sessions Yes Yes Yes No (DIY)
Sandbox isolation Yes (Docker) Yes (microVMs) Yes No (DIY)
Credential isolation Yes (vault + proxy) Yes Yes (IAM) No (DIY)
Self-hosted Yes No AWS only N/A (library)
License Apache 2.0 Proprietary Proprietary MIT

Tename doesn't compete with Deep Agents — it runs beneath it. Use Deep Agents for orchestration, Tename for infrastructure.

License

Apache 2.0. See LICENSE.

Status

v0.1 is the initial public release. The runtime is feature-complete for single-developer local use. Please file issues and PRs — the project is maintained as an individual side-project and feedback genuinely shapes v0.2.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tename-0.1.0.tar.gz (124.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tename-0.1.0-py3-none-any.whl (111.6 kB view details)

Uploaded Python 3

File details

Details for the file tename-0.1.0.tar.gz.

File metadata

  • Download URL: tename-0.1.0.tar.gz
  • Upload date:
  • Size: 124.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tename-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8326ada862f8d3432042ce7100b35aaeac3ca8edcf62fd415a308d7680cbf8fb
MD5 e333e80b652f4bfd0d7e130fdd0b543b
BLAKE2b-256 4013975fa69a89cc52e07dece7a364fe0cb797e2da67990279f8d0c76a0ff93d

See more details on using hashes here.

File details

Details for the file tename-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tename-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 111.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tename-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd5ccc8ef27bddbb65705baad99b9265e33600570e06d90e6871c4b370083aab
MD5 49641e3b8d862ff7db36dabd325faaef
BLAKE2b-256 dae553a7120b3fb03f66227a514df732d0d78df63cbe7e9144fd010924531c14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page