Installation
Set Your API Key
Get your API key from the dashboard and set it as an environment variable:.env file:
Get up and running with the Dedalus SDK in minutes
uv pip install dedalus-labs
export DEDALUS_API_KEY="your-api-key"
.env file:
DEDALUS_API_KEY=your-api-key
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(
instructions="You are a helpful assistant.",
input="What's the capital of France?",
model="anthropic/claude-opus-4-5"
)
print(response.final_output)
if __name__ == "__main__":
asyncio.run(main())
response = await runner.run(
input="Who won Wimbledon 2025?",
model="anthropic/claude-haiku-4-5",
mcp_servers=["tsion/exa"]
)
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]
)
Was this page helpful?