{"library":"openclaw","title":"OpenClaw","description":"OpenClaw is an open-source Python library designed for agent orchestration, serving as a plugin for the CMDOP platform. It provides tools and a framework for building and deploying intelligent agents that can interact with the CMDOP ecosystem. Currently at version 2026.3.20, it follows a YYYY.MM.DD versioning scheme, indicating active and continuous development.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install openclaw"],"cli":null},"imports":["from openclaw.agent import Agent","from openclaw.config import OpenClawConfig","from openclaw.tools import tool"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import asyncio\nimport os\nfrom openclaw.agent import Agent\nfrom openclaw.config import OpenClawConfig\nfrom openclaw.tools import tool\n\n# Define a tool for the agent to use\n@tool\ndef greet(name: str) -> str:\n    \"\"\"Greets the given name.\"\"\"\n    return f\"Hello, {name}!\"\n\nasync def main():\n    # Configure OpenClaw agent\n    # Obtain your API key from the CMDOP platform\n    config = OpenClawConfig(\n        api_key=os.environ.get(\"OPENCLAW_API_KEY\", \"sk-DUMMY_API_KEY\"),\n        agent_id=\"my-first-openclaw-agent\"\n    )\n\n    # Initialize the agent with the configuration\n    agent = Agent(config)\n\n    print(f\"OpenClaw Agent '{config.agent_id}' running...\")\n    # The agent.run() method is asynchronous and connects to the CMDOP platform\n    await agent.run()\n    print(\"Agent stopped.\")\n\nif __name__ == \"__main__\":\n    try:\n        asyncio.run(main())\n    except KeyboardInterrupt:\n        print(\"Agent interrupted and stopping.\")\n    except Exception as e:\n        print(f\"An error occurred: {e}\")","lang":"python","description":"This quickstart demonstrates how to initialize an OpenClaw agent, define a simple tool using the `@tool` decorator, and run the agent asynchronously. It uses an environment variable for the API key for security. The agent will connect to the CMDOP platform and make its defined tools available.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}