> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobilerun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kilo Code

> Connect Kilo Code to Mobilerun phones through the Model Context Protocol.

Kilo Code is an AI coding agent. Mobilerun lets it inspect a phone while it works on your code.

## Setup

1. [Set up a phone](https://docs.mobilerun.ai/devices.md) and install Kilo Code.

2. Register the remote MCP server with the Kilo CLI:

   ```bash theme={null}
   kilo mcp add mobilerun --url https://cloud.mobilerun.ai/api/mcp
   ```

   Alternatively, merge this into your `kilo.json` configuration:

   ```json kilo.json theme={null}
   {
     "mcp": {
       "mobilerun": {
         "type": "remote",
         "url": "https://cloud.mobilerun.ai/api/mcp",
         "enabled": true
       }
     }
   }
   ```

3. Run `kilo mcp auth mobilerun` and complete the OAuth sign-in.

Alternatively, use the [mobile-harness skill](https://docs.mobilerun.ai/skills/mobile-harness.md) for Python-based device control.

## First task

> List my Mobilerun devices and take a screenshot of the ready device.

Review tool permissions before approving actions. See [MCP Server](https://docs.mobilerun.ai/mcp-server.md) for available tools and authentication.

See the [Kilo MCP documentation](https://kilo.ai/docs/automate/mcp/using-in-kilo-code).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.