Quick Start
"""
Example usage of the Cloud Code SDK for AI-assisted coding
"""
from cloudcode import Local
import os
# use the current directory
cwd = os.getcwd()
# Initialize the SDK with your project directory and API keys
agent = Local(
working_dir=cwd,
model="o4-mini", # Main (planner) model
editor_model="gpt-4.1", # Editor model for implementing changes
architect_mode=True,
api_key=os.getenv("CLOUDCODE_API_KEY")
)
# Run an AI coder
result = agent.code(
prompt="what's this project about?",
editable_files=[],
readonly_files=[]
)