LLM API Guide

Mika Android AI Agent: Custom API Base URL, Key and Model Setup

In Mika, open Settings › Model, choose Custom (自定义), pick a protocol (OpenAI-compatible, Anthropic, Gemini or OpenAI Responses), then enter the endpoint, key and model.

Editorial illustration: Mika Android AI Agent: Custom API Base URL, Key and Model Setup
Illustration, AI-generated

Summary

  1. Mika has no server of its own. You add a key under Settings › Model, and prompts and screenshots go to the provider you pick.
  2. Custom (自定义) accepts OpenAI-compatible, Anthropic, Gemini and OpenAI Responses endpoints, so a gateway or a local model can be the provider.
  3. The main model must support tool calling. Chat and web tasks need Android 11, phone control needs Android 12, and Android 14 is recommended.
  4. The docs don't name the Custom form's fields or say whether Mika appends /v1, so test the endpoint with curl first.
On this page

Add a provider

In the Mika README, model setup lives under Settings › Model. Pick a provider, paste its API key, and you're done. Some providers also let you sign in with an account instead of a key: ChatGPT (Plus or Pro), xAI/Grok and OpenRouter.

The built-in presets cover DeepSeek, 通义千问, Kimi, 智谱, 硅基流动, 火山方舟, MiniMax, OpenRouter, Anthropic, Gemini, OpenAI, xAI, Mistral, Groq, Ollama and LM Studio, among others. If your provider is in that list, use the preset. You only need the Custom entry for an endpoint that isn't listed.

Use a custom base URL

Choose Custom (自定义) as the provider. The README says it accepts four protocols: OpenAI-compatible, Anthropic, Gemini and OpenAI Responses. Pick the one your endpoint speaks, then enter its address, your key and a model name.

Which protocol goes with which endpoint:

Your endpoint Protocol to pick Address to enter
Any OpenAI-format gateway or server OpenAI-compatible the gateway's base URL, usually ending in /v1
A gateway's Anthropic Messages endpoint Anthropic the gateway's Anthropic-format base URL
Ollama or LM Studio on your computer Custom, or the Ollama / LM Studio preset your computer's address on the local network

For a model on your own machine the README says to pick Custom and enter its address on your local network. The two presets exist as well, so try those first.

The main model needs tool-calling support, according to aiidelist's Mika guide. A model that can chat but can't call tools won't drive the phone.

Using SeedRouter, the gateway we run

SeedRouter is an unofficial third-party gateway, not a channel run by OpenAI or Anthropic. For the OpenAI-compatible protocol its base URL is https://seedrouter.net/v1, and one key covers GPT, Claude, Gemini and Grok models. Claude Code uses https://seedrouter.net without /v1 for the Anthropic format; whether Mika wants the same form is listed under "Not confirmed yet". Model names must match what the gateway lists, for example claude-sonnet-5-5. Check the list before you type one:

bash
curl https://seedrouter.net/v1/models -H "Authorization: Bearer $SEEDROUTER_API_KEY"

A JSON list of model ids means the key and address work. A 401 means the key is wrong. Prices are per model on SeedRouter's live price table. Any gateway sees every prompt and screenshot that passes through it, so read what to check before using an API reseller first.

Why the model choice matters for cost

Mika loops through screenshots and tool calls, so one task can mean many requests. aiidelist's guide gives no price or per-task estimate, and says a figure is meaningless without a model, a workflow and a retry profile. Its suggested measure is total inference spend across all attempts, failed ones included, divided by tasks you verified as done. A cheap model that needs corrections can cost more than a pricier one that finishes first time. Those are hypotheses from that guide, not measurements.

Ask mode is the default, and the README says it checks with you before Mika spends money. Autonomous mode is the alternative. If you point Mika at a pay-per-token key, leave Ask mode on until you've seen what a typical task costs in your provider's usage log.

Android requirements

Feature Android version
Chat, web, files 11 or later
Operating other apps 12 or later, 14 or later recommended
Linux sandbox arm64 devices only

Run Settings › Recovery & repair › Compatibility self-check to see whether your phone passes. The README says it runs 12 checks in about a minute. On Android 12 and 13, aiidelist notes that background work can interfere with whatever is in the foreground.

Wireless debugging for phone control

Phone control is optional; chat, web and files work without it. To turn it on, run the Set up phone control wizard in Settings and pair once.

Android switches wireless debugging off when the Wi-Fi network changes or the phone restarts. With your permission Mika can turn it back on. If the connection still fails, run Set up phone control again and re-pair. Some phones have no wireless debugging at all; the README says to start the phone helper from a computer over USB instead and points to its setup guide.

Limits the README states

  • Payment and password screens block screenshots, so Mika hands those to you.
  • There is no Mika server. Prompts and screen content go only to the provider you configure, API keys and memories are stored encrypted on the phone, and update checks contact only GitHub.
  • Updates come only from the repository's Releases, and About › Check for updates looks there. The license is Apache-2.0.
  • aiidelist reports that testing has mostly used one Android 14 phone, so results on other makers' phones may differ. Interrupted runs have to be restarted by hand, and MCP uses plain HTTP, meant for trusted private networks only.

If something breaks, About › Send feedback can attach diagnostics.

Not confirmed yet

  • The README doesn't name the fields in the Custom form, so the labels for address, key and model may differ from the table above.
  • Neither source says whether Mika adds /v1 or the Messages path itself. With the Anthropic protocol, try the gateway's Anthropic-format base URL first, and if requests fail, test the same address with curl.
  • Neither source lists models that work well, or gives rate limits or a cost per task.
  • The Mika wiki and Releases pages didn't load on 2026-11-09, so anything only they document isn't covered here.

Sources and checks

  1. wangzan101/Mika (GitHub README)Checked
  2. Mika AI Phone Agent: Android Automation, MCP Setup and Real LimitsChecked