Python SDK
Installation & Setup
Getting started with the Python SDK
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚨 Open Responses API (Alpha). Learn more here
Getting started with the Python SDK
pip install julep
from julep import Julep
# Initialize the client
client = Julep(api_key="your_julep_api_key")
export JULEP_API_KEY=your_julep_api_key
export JULEP_ENVIRONMENT=production # or development
from julep import Julep
client = Julep() # Will use environment variables
client = Julep(
api_key="your_julep_api_key",
environment="production", # or "development"
base_url="https://api.julep.ai", # Optional: custom API endpoint
timeout=30 # Optional: custom timeout in seconds
)
from julep import AsyncJulep
async def main():
client = AsyncJulep(api_key="your_julep_api_key")
# Use the client asynchronously
agent = await client.agents.create(name="My Agent")
# Run with asyncio
import asyncio
asyncio.run(main())