CLI, MCP Server, and AI Skills now support Device Code Flow
CloudBase CLI, MCP Server, and AI Skills now support Device Code Flow login. This feature is designed for headless environments or remote servers (such as cloud IDEs, SSH terminals, and OpenClaw), allowing identity authorization without a local browser.
Sign-in for remote development
Traditional login methods rely on a local browser redirect to complete OAuth authorization, which cannot be used directly in remote servers, container environments, or cloud IDEs. Device Code Flow decouples the authorization device from the login device through a device code. You only need to visit the authorization page in any browser and enter the device code to authorize the remote environment.
Use with AI agents
When using CloudBase Skills inside AI development tools (such as Cursor, WindSurf, CodeBuddy, etc.), the Agent automatically triggers the Device Code Flow. Once authorized, it can invoke the full set of CloudBase capabilities, enabling automation from development to deployment.
Example: an AI agent in OpenClaw
Using an OpenClaw cloud development environment as an example:
| Step | Role | Action |
|---|---|---|
| 1 | User | Sends instruction to Agent: Use CloudBase Skills, build a TodoList web app and deploy it |
| 2 | Agent | Auto-discovers and installs CloudBase Skills, triggers Device Code Flow |
| 3 | Agent | Returns authorization URL and device code (e.g., FSN9-9B5D), waits for user to authorize |
| 4 | User | Opens the URL in any browser and enters the device code to complete login |
| 5 | Agent | Detects authorization success, continues automatically: scaffolds project → writes code → calls CloudBase API → deploys |