What is Junis Desktop Agent?
Junis Desktop Agent (npx junis) is a CLI tool that connects your local device to the Junis platform, enabling AI agents to control your computer. File management, terminal commands, browser automation, and more — all accessible to your AI agents through a secure connection.
One command. One login click. Full device control for your AI agents.
Zero Configuration: Run the command, click login, and your device is connected. AI agents can immediately start working on your machine.
Why Use Junis Desktop Agent?
Complete Device Control
AI agents can read/write files, execute commands, automate browsers, and interact with your OS — all through your Junis agents.
One-Line Setup
No complex configuration. Run
npx junis, authenticate once, and you’re connected.Secure Connection
OAuth-based authentication with encrypted WebSocket relay. Your device connects outbound — no open ports required.
Two Operating Modes
Use Cloud Mode for remote AI access or Local Mode for direct integration with Claude Desktop.
Getting Started
Prerequisites
- Node.js 18+ installed on your machine
- A Junis account (sign up at junis.ai)
Quick Start
Authenticate
A browser window opens automatically. If you’re already logged in to Junis, simply click “Approve” to authorize the device.
Available Tools
Once connected, your AI agents gain access to powerful device tools:File & Shell Tools
| Tool | Description |
|---|---|
execute_command | Run terminal commands on the device |
read_file | Read files (supports multiple formats) |
write_file | Create or overwrite files |
list_directory | Browse directory contents |
search_code | Search through codebases |
list_processes / kill_process | Process management |
Browser Automation Tools
| Tool | Description |
|---|---|
browser_navigate | Navigate to any URL |
browser_click | Click elements on web pages |
browser_type | Type text into form fields |
browser_screenshot | Capture screenshots |
browser_snapshot | Get page accessibility tree |
browser_evaluate | Execute JavaScript in the browser |
Operating Modes
- Cloud Mode (Default)
- Local Mode
Cloud Relay Mode
- Persistent connection with auto-reconnect
- 30-second heartbeat for reliability
- Exponential backoff on disconnection
- Device appears in your Junis dashboard
CLI Commands
| Command | Description |
|---|---|
npx junis | Start in cloud mode (default) |
npx junis --local | Start in local-only mode |
npx junis --port 3000 | Specify a custom port |
npx junis --reset | Reset authentication |
npx junis status | Check connection status |
npx junis logout | Log out and clear credentials |
npx junis --help | Display help |
Linking Devices to Agents
After your device is connected, link it to specific agents:You can also link devices programmatically via Junis Magic MCP tools:
list_devices and link_agent_device.Cross-Platform Support
| Platform | Status |
|---|---|
| macOS | Fully supported |
| Windows | Fully supported |
| Linux | Fully supported |
Security
Authentication
Authentication
- OAuth Device Flow: Industry-standard authentication
- Tokens stored locally in
~/.junis/config.json - Tokens can be revoked anytime via
npx junis logout
Connection Security
Connection Security
- Outbound-only connection: Your device connects out — no incoming ports needed
- Encrypted WebSocket: All communication is encrypted via WSS
- Per-request authorization: Each agent command is verified against your permissions
Device Permissions
Device Permissions
- Only agents explicitly linked to your device can send commands
- You control which agents have access via the dashboard
- Disconnect anytime by stopping the CLI
Use Cases
Development Automation
Browser-Based Research
File Organization
Related Guides
Junis Magic
Manage devices via MCP tools
Agent System
Learn about agent types
MCP Integration
Connect external services
Tools Overview
All available tools
Need Help? Contact us at contact@junis.ai for assistance with device setup and configuration.
