Installation and authorization
This page installs the command-line entry point, prepares local Runtime, and sets up authorization. Both account login and API Key authorization work with CLI and MCP.
1. Install CLI
Complete the prerequisites, then run in a terminal:
npm install -g @czur/open-cli@latest
czur-open version
czur-open --helpThe CLI command is czur-open. Run these examples in a terminal, not in browser developer tools or an AI conversation. If the command is missing after installation, see Command startup problems.
An AI client can start MCP with npx, without a global MCP installation. See Your first AI agent. To use a preinstalled local executable instead, install:
npm install -g @czur/open-mcp@latestInstalling npm packages does not authorize an account or silently download or launch a Runtime installer.
2. Install and check Runtime
If CZUR Open SDK Runtime is not installed, explicitly download its installer:
czur-open runtime installThe command selects and verifies the official installer for your system and architecture, then shows the next steps. Complete installation through your operating system's normal flow and start Runtime. CLI does not execute the installer automatically.
Check the local service:
czur-open doctordoctor checks Runtime connectivity without account login and does not install or upgrade software. Resolve service, address, or certificate problems before authorization. If Runtime is already installed, start with this check.
3. Choose an authorization method
Option A: Account login
czur-open auth loginThe command displays an authorization link. Open it manually in a browser, sign in, and confirm authorization. Wait for the terminal to report completion. The command does not open a browser automatically; keep the waiting terminal open until confirmation completes.
CLI and MCP share account authorization when run as the same operating-system user. Use the same user environment to start MCP. Remote hosts, containers, and other system users do not automatically share this state.
Option B: User Center API Key
Individual users can apply for and manage an API Key in the CZUR User Center, without creating a developer app. Configure the Key in the tool process's environment:
export CZUR_OPEN_API_KEY="REPLACE_WITH_YOUR_API_KEY"$env:CZUR_OPEN_API_KEY = "REPLACE_WITH_YOUR_API_KEY"Replace the placeholder with your Key. Do not paste real Keys into an AI conversation or commit them to a repository. These settings affect the current terminal and processes started from it. For a desktop AI client, configure the MCP server's env separately; see the agent configuration examples.
A nonempty Key takes precedence over account login. An invalid Key does not fall back to a signed-in account. Unset, empty, or whitespace-only values use account authorization. Offline and private-network deployments also need the Runtime authorization and local-service setup.
4. Verify authorization
After either method, run:
czur-open auth check
czur-open device listauth check verifies that the selected Key or account can authorize with Runtime; the device list separately checks accessible devices. If the list is empty, check power, USB connections, and competing applications before signing in again.
Account status and logout
czur-open auth status
czur-open auth logoutauth status only reads local account state and does not replace auth check. auth logout signs out and clears local account authorization, but does not remove or revoke CZUR_OPEN_API_KEY. Update the environment variable to replace a Key, and restart MCP Server after changing its launch configuration.
Next: Your first scan or Your first AI agent.