Documentation Index
Fetch the complete documentation index at: https://docs.funky.dev/llms.txt
Use this file to discover all available pages before exploring further.
Step 1: Install the SDK
Step 2: Set your API key
Export your Funky API key as an environment variable:
export FUNKY_API_KEY="your-api-key"
Step 3: Spawn a sub-agent
Save the following as main.py:
import os
from funky import Funky
sub_agent = client.create_subagent(model="gemini-3-flash-preview")
try:
messages = sub_agent.send_message("What is best restaurant in SF?")
print(messages[-1].text)
finally:
sub_agent.terminate()
Step 4: Run it
Funky provisions the sub-agent, runs your message, and tears it down — no infrastructure to manage.