Skip to content

Crusoe

Crusoe provides managed inference for leading open-weight language models on renewable-powered GPU infrastructure.

The OpenAI provider is an optional dependency. To install, run:

Terminal window
pip install 'strands-agents[openai]'

Generate an API key in the Security tab of the Crusoe Cloud Console, export it as CRUSOE_API_KEY, and point the provider at Crusoe’s endpoint:

import os
from strands import Agent
from strands.models.openai import OpenAIModel
model = OpenAIModel(
client_args={
"api_key": os.environ["CRUSOE_API_KEY"],
"base_url": "https://api.inference.crusoecloud.com/v1/",
},
model_id="zai/GLM-5.2",
)
agent = Agent(model=model)
response = agent("Explain tool calling in one sentence.")
print(response)

Two client settings connect the provider to Crusoe Managed Inference:

  • API key: from the Security tab of the Crusoe Cloud Console
  • Base URL: https://api.inference.crusoecloud.com/v1/

Model IDs come from the Crusoe Managed Inference overview, for example zai/GLM-5.2 or nvidia/Nemotron-3-Super-120B-A12B. For model parameters and other provider options, see the OpenAI provider guide.