1

Installation

pip install --upgrade asteroid-odyssey
2

Create your Python file (run_agent.py)

from asteroid_odyssey import AsteroidClient

# Create client and execute agent
client = AsteroidClient('your-api-key')

execution_id = client.execute_agent(
    agent_id='your-agent-id',
    execution_data={'input': 'your data'}
)

# Wait for result
result = client.wait_for_execution_result(execution_id)
print(result)
3

Run the agent

Replace your API key, your agent_id, and update the execution_data with your agent’s variables (or remove if no variables), then run:
python run_agent.py
Agent Creation: Agents can only be created through the Asteroid Platform web interface. The API is designed for executing existing agents, not creating them.

Method Reference

MethodPurposeReturns
execute_agent()Start agent executionexecution_id
wait_for_execution_result()Wait for completionresult
get_execution_status()Check current statusstatus_info
get_execution_result()Get final resultresult
upload_execution_files()Upload filesupload_response
get_browser_session_recording()Get recording URLurl
get_agent_profiles()Get list of agent profileslist
get_agent_profile()Get agent profile by IDprofile
create_agent_profile()Create new agent profileprofile
update_agent_profile()Update existing agent profileprofile
delete_agent_profile()Delete agent profilestring

Core Methods