Skip to main content

Wrap agents, ship APIs - Turn agent CLIs into libraries and OpenAI-compatible servers

Project description

AgentWrap

Wrap agents, ship APIs - Turn agent CLIs into libraries and OpenAI-compatible servers

Installation

pip install agentwrap

Quick Start

from agentwrap import CodexAgent, OpenAICompatibleServer

# Create and configure agent
agent = CodexAgent()
agent.configure({
    "agent_config": {"type": "codex-agent"},
    "skills": []
})

# Create OpenAI-compatible server
server = OpenAICompatibleServer(agent)

# Start HTTP server
await server.start_http_server({"port": 8000})

Features

  • 🤖 Wrap agent CLIs as Python libraries
  • 🔌 OpenAI-compatible API server
  • 🛠️ Function calling support
  • 📦 MCP (Model Context Protocol) integration
  • 🔄 Streaming responses

Documentation

For full documentation, visit: https://github.com/dashi0/agentwrap

License

MIT

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

agentwrap-0.1.0.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

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

agentwrap-0.1.0-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentwrap-0.1.0.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentwrap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9aa33385ab60385a6862025afbffb02f77d18f06e61cb72dfc36d03af120ac7
MD5 06ef28b8e371a970809feee0dde4bd48
BLAKE2b-256 1ad196fb0605582898192167aeb433885fcab4772441db97d4c58998de67cd52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentwrap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentwrap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5499291dbcab97a700d8c19354d8c74914bca0e0ee64075a893c8278fd1ac1e1
MD5 0a450ae731b3e01f0d920b381113b3ff
BLAKE2b-256 e9eabb46f701be5d16505aa61976dea76662749ff8886ffaa8b8d58193002e63

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