Prepare the environment
OpenOperator requires Python 3.11 or higher. First, we recommend using uv to setup the Python environment.Create an agent
Then you can use the agent as follows:agent.py
Set up your LLM API keys
ChatOpenAI and other Langchain chat models require API keys. You should store these in your .env file. For example, for OpenAI and Anthropic, you can set the API keys in your .env file, such as:
.env