Files
2026-11-19 11:43:36 +01:00

3.2 KiB

LiteLLM Android dashboard: research and build plan

Research (19 November 2026)

  • LiteLLM's proxy exposes bearer authenticated management APIs. The current API reference lists /model/info, /key/list, /team/list, /global/spend, /global/activity, and /spend/logs/v2. Usage logs use page based pagination and date filters. API reference, spend tracking.
  • A LiteLLM admin UI requires a proxy with a database and a master key. Key and management access depends on the caller's role and allowed routes. The mobile app should surface 401/403 responses instead of assuming admin rights. UI setup, virtual keys.
  • /model/info returns configured models with masked provider credentials. The app must not display or persist provider secrets. Model management.
  • Android recommends Compose BOM and the Kotlin Compose compiler plugin for a native Compose app. Compose BOM, compiler setup.

Product scope

  1. Connection screen: proxy URL and API key, test connection, secure credential storage, clear connection.
  2. Overview: total spend, activity summary, daily request chart, recent requests, and refresh.
  3. Models: searchable list and model details.
  4. Keys and teams: searchable management inventory, spending and budget information where returned by the proxy, plus admin creation flows.
  5. Logs: paginated recent request list with status, model, tokens, cost, and detail view.
  6. Model creation for an authorized admin; settings with server identity, connection status, and sign out. Every screen has loading, empty, and actionable error states.

Implementation sequence

  1. Scaffold a native single-activity Kotlin/Jetpack Compose Android project.
  2. Add a small HTTP repository with strict URL normalization, bearer auth, timeouts, and tolerant parsing of LiteLLM response variants.
  3. Build navigation and the core dashboard screens, then connect them to live proxy data.
  4. Add secure local storage for the API key, accessible labels, and Android network configuration.
  5. Build a debug APK, install and exercise it on the emulator via adb; fix issues found.

Acceptance checks

  • Launches without a configured proxy and explains how to connect.
  • Rejects malformed server URLs; connects to an HTTPS server (or explicitly configured local HTTP server) and handles invalid credentials.
  • Renders real data from authorized endpoints and keeps empty, forbidden, and server error states distinct.
  • Never logs or exposes the saved key in UI, app backups, or source.
  • Compiles and launches on the available Android emulator.

The repository started without application source. The first emulator pass used a local fixture; a later pass verified read-only flows against the user's LiteLLM v1.110.1 server. Privileged write actions have only been exercised against the fixture. Destructive management actions are outside the initial scope.