Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
import osfrom orq_ai_sdk import Orqclient = Orq( api_key=os.environ.get("ORQ_API_KEY", "__API_KEY__"), environment="production", # optionally initiate the identity_id for the session identity_id=2025)
If environment is provided in the SDK initialization, it will be set as the global environment for every request to Deployments Invoke, Get config, and Retrieve a remote config even if the context contains an environment property.
The Deployments API delivers text outputs, images, or tool calls based on the configuration established within orq.ai for your deployments. Additionally, this API supports streaming. It is highly recommended that you use the code snippets from the orq.ai Organization panel to ensure ease of use and minimize errors.