Catalog PyPI
PACKAGE EXPLORERView in registry

agentwrap

PyPI

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

agentaiapicapsulecodexmcpopenaiwrapper
Versions collected1
Direct dependencies12From release 0.1.1
Last observed21 Oct, 08:58 UTC

README

Version 0.1.1 documentation

AgentWrap

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

Prerequisites

CodexAgent requires the OpenAI Codex CLI to be installed:

npm install -g @openai/codex

Note: Unlike the TypeScript package which bundles Codex as a dependency, Python cannot auto-install Node.js CLI tools. You must install Codex globally.

📚 Detailed installation guide: See docs/codex-installation-guide.md for platform-specific instructions, Docker setup, and troubleshooting.

Installation

pip install agentwrap

Quick Start

from agentwrap import CodexAgent, OpenAICompatibleServer

# Create and configure agent
agent = CodexAgent()
agent.configure({
    "agent_config": {"type": "codex-agent", "api_key": "OPENA_API_KEY"},
    "skills": [
      {"type": "anthropic-skill", "path": "./skills/random"}
    ]
})

# Use as library
for event in agent.run("Generate a random number for me"):
    print(event)

# Or start as OpenAI-compatible API server
server = OpenAICompatibleServer(agent)
await server.start_http_server({"port": 8000})

More examples.

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.18 Jan 202612

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
dashi0/agentwrap

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:58 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:751101dabcbb4426b13128584117fb8432be740919f107f02717e7c9c6d4eebc