Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Agent Dev CLI

A Python CLI and SDK for agent debugging and workflow visualization with VS Code AI Toolkit integration.

Installation

pip install agent-dev-cli --pre

Note: This package is currently in beta. The --pre flag is required to install pre-release versions.

Usage

Option 1: CLI Wrapper (Recommended)

The easiest way to use Agent Dev CLI - no code changes required:

# Run your agent script with agentdev instrumentation
agentdev run my_agent.py

# Specify a custom port
agentdev run workflow.py --port 9000

# Enable verbose output
agentdev run my_agent.py --verbose

# Pass arguments to your script
agentdev run my_agent.py -- --model gpt-4 --temperature 0.7

The CLI automatically:

  • Intercepts from_agent_framework() calls
  • Injects agentdev visualization endpoints
  • Opens the workflow visualization in VS Code

Option 2: Programmatic API

If you prefer explicit control, you can integrate agentdev directly:

from agentdev import configure_agent_server
from azure.ai.agentserver.agentframework import from_agent_framework

# Create your agent
agent = build_agent(chat_client)

# Create agent server
agent_server = from_agent_framework(agent)

# Setup workflow visualization
configure_agent_server(agent_server)

# Run the server
await agent_server.run_async()

CLI Commands

agentdev run

Run a Python agent script with agentdev instrumentation.

agentdev run [OPTIONS] SCRIPT [ARGS]...

Options:
  -p, --port INTEGER    Agent server port (default: 8088)
  -v, --verbose         Enable verbose output
  --help                Show this message and exit

agentdev info

Show agentdev configuration and status information.

agentdev info

Features

  • Health Check Endpoint: Adds a /agentdev/health endpoint to your agent server
  • Workflow Visualization: Starts a visualization server on port 8090 for WorkflowAgent instances
  • Easy Integration: Simple one-function setup

Testing Your Agent Server

Once your agent server is running, you can test it using curl:

# Health check
curl http://localhost:8088/agentdev/health

# Send a request to your agent (streaming)
curl 'http://localhost:8088/agentdev/v1/responses' \
  -H 'Content-Type: application/json' \
  -d '{"model":"your-agent-model-id","input":{"role":"user","text":"Hello!"},"stream":true}'

Requirements

License

This project is licensed under the Microsoft AI Toolkit – Agent Dev CLI License Terms.

Metadata

Release files for agent-dev-cli 0.0.1b260313

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

Source distribution (sdist)

Source distribution for agent-dev-cli 0.0.1b260313
File Size Uploaded
agent_dev_cli-0.0.1b260313.tar.gz 27.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-dev-cli 0.0.1b260313
File Interpreter ABI Platform
agent_dev_cli-0.0.1b260313-py3-none-any.whl Python 3 none any Details

Total release size: 60.0 kB

Release files / agent_dev_cli-0.0.1b260313.tar.gz

Download URL agent_dev_cli-0.0.1b260313.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31a342877fa4fc22101ab0e3e4a79d7ff17f9a25d7fc7634d2a7a374966e3880
BLAKE2b-256 checksum
How to use checksums
ed5f5a54fc3fb633cc3ca17f12cd7f8540d08614fc05f46aeb55da8ba1f3ec78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.6

Release files / agent_dev_cli-0.0.1b260313-py3-none-any.whl

Download URL agent_dev_cli-0.0.1b260313-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89af0455c374e8a60a93d87364d014d07c8b23f504ecd4f8aa94e085e55fc683
BLAKE2b-256 checksum
How to use checksums
34772e0cf419b63150e0083f362d1296051c51e67a855694ba3b97aee82f5aa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.6
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