Skip to main content
Install the SDK and make your first request.

Installation

pip install dedalus-labs

Set Your API Key

Get your API key from the dashboard and set it as an environment variable:
export DEDALUS_API_KEY="your-api-key"
Or use a .env file:
DEDALUS_API_KEY=your-api-key

Your First Request

import asyncio
from dedalus_labs import AsyncDedalus, DedalusRunner
from dotenv import load_dotenv

load_dotenv()

async def main():
    client = AsyncDedalus()
    runner = DedalusRunner(client)

    response = await runner.run(
        input="What's the capital of France?",
        model="openai/gpt-4o-mini"
    )

    print(response.final_output)

if __name__ == "__main__":
    asyncio.run(main())

Add MCP Servers

Connect to hosted MCP servers for web search, databases, and more:
response = await runner.run(
    input="Who won Wimbledon 2025?",
    model="openai/gpt-4o-mini",
    mcp_servers=["tsion/brave-search-mcp"]
)

Add Local Tools

Pass functions directly—the SDK handles schema generation:
def add(a: int, b: int) -> int:
    """Add two numbers."""
    return a + b

response = await runner.run(
    input="What's 15 + 27?",
    model="openai/gpt-4o-mini",
    tools=[add]
)

Next Steps

You’re ready to build. Explore the features: