3.2 KiB
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/inforeturns 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
- Connection screen: proxy URL and API key, test connection, secure credential storage, clear connection.
- Overview: total spend, activity summary, daily request chart, recent requests, and refresh.
- Models: searchable list and model details.
- Keys and teams: searchable management inventory, spending and budget information where returned by the proxy, plus admin creation flows.
- Logs: paginated recent request list with status, model, tokens, cost, and detail view.
- 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
- Scaffold a native single-activity Kotlin/Jetpack Compose Android project.
- Add a small HTTP repository with strict URL normalization, bearer auth, timeouts, and tolerant parsing of LiteLLM response variants.
- Build navigation and the core dashboard screens, then connect them to live proxy data.
- Add secure local storage for the API key, accessible labels, and Android network configuration.
- 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.