artemis README

The project's README from github.com/google/artemis. As one markdown file: README.md.

ARTEMIS Banner

Let AI assistants and test suites use real phones like a human.

English • 中文文档 • Workflow Showcase • Quick Start • MCP for IDEs • Benchmarks • Discord Community

Python 3.12+ License: Apache-2.0 MCP Native Multi-Model AndroidWorld SOTA

Artemis in Action
Live Demo: Setup driving routes and calculate total durations in Google Maps, then open YouTube to play a Coldplay song.

Key Highlights

Antigravity × ARTEMIS: Autonomous Testing Workflow

Antigravity uses ARTEMIS through MCP to turn a test request into a plan, device execution, and a diagnostic report:

1. Prompt Input (Task Dispatch)
Describe your test scenario and target metrics in Antigravity

Step 1: Prompt Input in Antigravity
2. Test Plan Generation
Formulates a step-by-step test plan & architecture for review

Step 2: Test Plan Generation
3. Autonomous Test Execution
Drives real device, navigates UI, and profiles performance

Step 3: Autonomous Test Execution
4. Final Report
Delivers structured audit findings, metric tables, and raw datasets

Step 4: Final Report

Quick Start

Ensure an Android device (with USB Debugging enabled) or emulator is connected. The one-click startup script will automatically:

macOS and Linux

# 1. Clone repo & navigate to directory
git clone https://github.com/google/artemis.git && cd artemis

# 2. One-click launch
./start.sh

Windows PowerShell

# 1. Clone repo & navigate to directory
git clone https://github.com/google/artemis.git
cd artemis

# 2. One-click launch
.\start.bat

PowerShell does not search the current directory for executable scripts by default, so use .\start.bat without a trailing \. In Command Prompt (CMD), use start.bat instead.

Tip: Opens http://localhost:8000 in your default browser with a device connection wizard, live screen mirroring, prompt sandbox, and execution replays. You can also run directly from CLI: uv run artemis run "Open Settings, find Battery and tell me current level" --profile flash.

MCP Setup for Codex / Antigravity / Claude Code / Windsurf (Click to expand)

ARTEMIS includes a native Model Context Protocol (MCP) server. Connect your real phone directly into AI IDEs:

Running ./start.sh (macOS/Linux) or .\start.bat (Windows PowerShell) will prompt you to configure global MCP and testing rules for detected IDEs (or you can install/update anytime later manually using the commands below):

# Auto-install MCP server & global rules for Antigravity / Jetski:
uv run artemis mcp --install antigravity

# Or install for all supported AI IDEs (including Codex):
uv run artemis mcp --install all

Tip: You can also configure MCP interactively during first-time setup via uv run artemis init. Pro Tip: If you want to use the artemis command globally without uv run in any directory, run uv tool install -e . once in the project root.

2. Manual Configuration (Optional)

If you prefer to configure manually, run uv run artemis mcp --generate-config <client> (for example, codex or antigravity) to output the appropriate TOML or JSON snippet. Replace /path/to/artemis with your actual repo path and point command to your .venv Python executable:

  • Codex (~/.codex/config.toml):
[mcp_servers.artemis]
command = "/path/to/artemis/.venv/bin/python"
args = ["-m", "mcp_server"]
cwd = "/path/to/artemis"

[mcp_servers.artemis.env]
PYTHONUNBUFFERED = "1"
PYTHONPATH = "/path/to/artemis"
  • Antigravity (~/.gemini/jetski/mcp_config.json):
{
  "mcpServers": {
    "artemis": {
      "command": "/path/to/artemis/.venv/bin/python",
      "args": ["-m", "mcp_server"],
      "cwd": "/path/to/artemis",
      "env": {
        "PYTHONUNBUFFERED": "1"
      },
      "tools": {
        "mobile_run_task": { "eager": true },
        "mobile_manage_task": { "eager": true },
        "mobile_get_device_state": { "eager": true },
        "mobile_inspect_trace": { "eager": true },
        "mobile_diagnose": { "eager": true }
      }
    }
  }
}
  • Claude Desktop (claude_desktop_config.json):
{
  "mcpServers": {
    "artemis": {
      "command": "/path/to/artemis/.venv/bin/python",
      "args": ["-m", "mcp_server"],
      "cwd": "/path/to/artemis"
    }
  }
}

To ensure your AI coding assistant acts with the rigor of a senior mobile test engineer and never hallucinates UI interactions, we provide a dedicated testing mindset rules file at mcp_server/rules.md (covering Active Exploration before coding, Flash vs. Pro routing strategy, Latency & Timing compensation, and the "Dynamic-First, Coordinate-Fallback" locator pattern).

You can mount or copy mcp_server/rules.md into your AI IDE's rule configuration:

  • Antigravity: Add the contents of rules.md to your Workspace Rules, Global Rules settings, or agent instructions.
  • Claude Code: Run artemis mcp --install claude to install the rules to ~/.claude/rules/artemis.md (install to exactly one location — Claude Code loads both ~/.claude/CLAUDE.md and ~/.claude/rules/*.md, so duplicating the rules wastes context).
  • Cursor: Copy the contents into .cursorrules or create a rule file at .cursor/rules/artemis.mdc.
  • Codex: Add the contents to ~/.codex/AGENTS.md (or the active AGENTS.override.md).
  • Windsurf / OpenClaw: Add the rules to your workspace rules or global system prompts.

For more details on the testing mindset and MCP architecture, see the MCP Server README.

4. Prompt Your Phone in the IDE Chat

In Codex, Antigravity, or Claude Code, simply prompt:

"Build the latest changes into an APK, install it on the connected device, open the login screen with a test account, verify if there are any unexpected popups after login, and return screenshots of the final page."

Python SDK Integration (Click to expand)

Install the zero-runtime-dependency client on the development machine. ADB, agents, models, and image processing remain on the device host:

uv add "artemis-client @ git+https://github.com/google/artemis.git#subdirectory=packages/artemis-client"
import asyncio
from artemis_client import ArtemisClient


async def main():
    client = ArtemisClient(
        "http://artemis-host:8000",
        device_serial="emulator-5554",  # optional: target specific device serial
        default_profile="flash",  # "flash" (fast reactive) or "pro" (deep reasoning)
    )

    result = await client.run(
        "Open System Settings, go to 'Battery', verify battery percentage is displayed, and check for any crash dialogs.",
    )

    assert result.succeeded, f"Test failed: {result.error or result.status}"
    print(f"✅ Test Passed! Device: {result.device_serial} | Trace ID: {result.trace_id}")


if __name__ == "__main__":
    asyncio.run(main())

Usage Modes

Artemis Web Console
Console Overview: ① View Switcher (Home / Workspace) · ② Model & Replay (Flash/Pro status & video replay) · ③ Live Agent Stream (Action perception, target coordinates & structured results) · ④ Prompt Dock (Natural language dispatch) · ⑤ Task Queue & Dashboard (Lifecycle & history)

Benchmarks: AndroidWorld (SOTA 99%+)

Artemis achieved a 99%+ completion rate on AndroidWorld, Google Research's benchmark spanning 20+ apps and 100+ multi-step tasks.

AndroidWorld Benchmark Comparison

How ARTEMIS is Architected

ARTEMIS System Architecture Diagram

Execution Profiles: Flash vs. Pro

ARTEMIS supports two execution profiles tailored for different automation requirements:

Roadmap

Community & Contributing

Contributions are warmly welcomed!

License

This project is licensed under the Apache License 2.0.

artemis (google/artemis)

Searching Database…

12.1K ·GitHub
Что это такое?ARTEMIS позволяет ИИ-ассистентам и наборам тестов управлять настоящими Android-телефонами с помощью инструкций на естественном языке, автоматизируя сквозные сценарии и попутно сохраняя логи и скриншоты.
Это CLI-инструмент, Python-библиотека или что-то другое?Это всё вместе: CLI для разработчиков (uv run artemis run), Python SDK со структурированными выходами на Pydantic для фреймворков вроде pytest, нативный MCP-сервер и веб-консоль визуального тестирования.
Как это запустить?Подключите Android-устройство с включённой отладкой по USB (или эмулятор), затем запустите скрипт запуска в один клик: start.sh на macOS/Linux или start.bat на Windows. Он автоматически установит ADB, scrcpy, FFmpeg и зависимости Python через uv.
Какие ИИ-ассистенты для программирования поддерживает MCP-сервер?Нативный MCP-сервер ARTEMIS подключается к Antigravity, Codex, Claude Code, Windsurf, Cursor, VS Code, Cline/Roo и OpenClaw, позволяя им напрямую управлять подключённым телефоном.
Какой компромисс между профилями выполнения Flash и Pro?Flash — это быстрый реактивный цикл (~3-5 с на шаг), хорошо подходящий для рутинных задач с интерфейсом, но у него нет плана задачи, страховочной сетки, проверки контрольных точек и ADB shell. Pro — более медленный (~15-40 с на шаг) многоагентный процесс с Planner, Operator и Checker, который проверяет контрольные точки и формирует итоговый отчёт.
Для кого это создано?Это для QA-инженеров и разработчиков мобильных приложений, которые хотят проводить исследовательское и регрессионное тестирование на реальных Android-устройствах с помощью ИИ, встроенное прямо в их рабочий процесс в IDE.
Насколько хорошо ARTEMIS показывает себя в бенчмарках?Он достигает показателя выполнения задач 99%+ в бенчмарке AndroidWorld от Google Research, который охватывает 20+ приложений и 100+ многошаговых задач.
Поддерживает ли он и iOS?Пока нет. Расширение на платформу iOS запланировано вместе с интеграцией с Android Studio и облегчёнными VLM, работающими на устройстве.
Как ARTEMIS находит элементы интерфейса для взаимодействия?Он сочетает иерархии доступности и OCR с визуальными моделями, отдавая предпочтение индексам элементов, когда они доступны, и переходя к поиску по координатам или визуальному поиску для нестандартных интерфейсов Canvas, Compose и Flutter.
Зачем устанавливать файл rules.md в мою ИИ-IDE?Он учит ИИ-ассистента мышлению старшего инженера по мобильному тестированию (активное исследование, маршрутизация между Flash и Pro, компенсация задержек), чтобы тот не выдумывал взаимодействия с интерфейсом.
Creator
google
Size
25.2 MB
Stars
12.1K
Updated
CommitSep 29
Age
2mo
Commits · 90 Days