Agent 24 Docs
Open source · Android · Local-first

Agent 24

Agent 24 is an open-source AI assistant for Android. It writes and edits code, runs shell commands, works with files and documents, searches the web and finishes multi-step tasks — end to end, from your phone.

31Built-in tools
12Model providers
25+Slash commands
100%On-device data

Quick start

  1. Install the APK from GitHub Releases and open Agent 24.
  2. Connect a provider with /connect — free models work with zero setup.
  3. Pick a model — /model.
  4. Describe the task in plain language. The agent takes it from there.

Getting Started

From install to your first completed task in about three minutes.

1. Install

Download the latest APK from GitHub Releases, install it and open the app. When prompted, grant the accessibility permission — it is required for screen understanding and UI dumping. No account or sign-up is needed.

2. Connect a provider

Run /connect and choose one of the 12 pre-configured providers (see Providers). Free-tier models are available out of the box; paid providers only need an API key, entered once and stored in the Android Keystore.

3. Choose a model

/model lists every model of the connected provider together with its capability flags: supportsTools, supportsImages, supportsReasoning and supportsStreaming.

4. Start working

Describe the task in natural language — in English, Bangla or Banglish:

> build a calculator app with history
> find every TODO in src/ and summarize
> refactor utils.js and run the tests
> make me a PDF invoice from this data

Keyboard

KeyAction
/Open the command palette
EscClose overlay / cancel

Agents

Selectable primary and sub-agents, plus system agents that trigger automatically.

AgentModePermissionsDescription
buildprimary*: allowDefault agent, full tool access
planprimaryedit: ask, bash: askRead-only analysis, confirms edits
generalsubagent*: allowGeneral-purpose multi-step tasks
exploresubagentread-only setFast codebase exploration
scoutsubagentread/web onlyExternal docs & dependency research

System agents

AgentTriggerPurpose
compactionTokens > 80%Context summarization
titleFirst messageSession title (3–5 words)
summarySession switchConversation summary

Permission matrix

Toolbuildplangeneralexplorescout
readallowallowallowallowallow
edit / writeallowaskallowdenydeny
bashallowaskallowallowallow
grep / glob / listallowallowallowallowallow
webfetch / websearchallowallowallowallowallow
todowriteallowallowdenydenydeny
task / questionallowallowallowdenydeny

allow = runs silently · ask = confirmation popup · deny = blocked

Tools

31 built-in tools. Every tool receives a JSON parameter map and passes through the permission layer first.

Terminal & shell

ToolDescription
bashExecute shell commands
shellPersistent shell sessions

Files

ToolDescription
readRead file contents
writeCreate or overwrite files
editFind & replace edits
diffUnified diff preview
apply_patchApply unified patches
archiveZip / tar create & extract
listList directory contents

Search

ToolDescription
grepRegex content search
globFind files by pattern

Web

ToolDescription
webfetchFetch URL content
websearchSearch the web

Agent & workflow

ToolDescription
taskDelegate to subagents
skillLoad specialized skills
questionInteractive multi-choice prompts
todowrite / todoreadTask list management
gitGit status, diff, commit, branch, log
memoryLong-term memory across sessions
scheduleTimed commands via alarms

Documents

ToolDescription
pdfRead / extract PDF text
pdf_editEdit existing PDFs
pdf_makerGenerate PDF documents
docx_makerGenerate Word documents
cv_makerGenerate a CV as PDF

Vision & device

ToolDescription
image_analyzeOCR & structure analysis
image_describeDescribe images for the model
screenshotCapture device screenshots
ui_dumpDump the UI hierarchy
sensorDevice sensors & hardware control (torch, vibrate, brightness, Wi-Fi…) — root when available

Execution flow

user action → check permission rules
  → deny  → blocked immediately
  → ask   → confirmation popup → wait for user
  → allow → action runs

Example calls

bash    { "command": "ls -la" }
read    { "file_path": "/path/to/file" }
edit    { "file_path": "...", "old_string": "find", "new_string": "replace" }
grep    { "pattern": "regex", "path": "/dir", "include": "*.md" }
task    { "description": "...", "prompt": "...", "subagent_type": "explore" }

Commands

25+ slash commands for session and workflow control.

CommandDescription
/newStart a new session
/clearClear chat messages
/sessionsShow the session list
/modelChange the AI model
/connectConnect a provider
/build /planSwitch agent mode
/initInitialize a project
/cwd [path]Show or set the session working directory
/diffShow the real git diff
/undo /redoUndo / redo the last tracked file change
/forkDuplicate the session into a copy
/reviewCode review
/componentCreate a component
/compactSummarize context (chat history stays)
/shareShare via the Android share sheet
/skillsList skills
/agentsList agents
/themeChange theme (picker dialog)
/testRun the project's test suite
/export /importExport / import a session
/helpShow help

Permissions

Every tool call passes through the permission layer before it executes.

Permission keys

KeyGates
readread
editwrite, edit, apply_patch
bashbash, shell
glob / grep / listrespective tools
tasktask
external_directoryany tool outside the workspace
todowritetodowrite, todoread
webfetch / websearchweb tools
skill / questionskill, question
doom_loopstuck-agent recovery

Values

ValueBehavior
allowExecute without asking
askShow a popup, wait for the user's decision
denyBlock execution entirely

Evaluation order

  1. Check the agent-specific permission for the tool name.
  2. Check the wildcard (*) permission.
  3. Default: allow for build, ask for plan.

Providers

12 pre-configured providers with capability flags, retries and automatic fallback. Bring your own key where needed — free options work with zero setup.

ProviderWhat you get
OpenCode ZenFree-tier models with zero setup — the quickest way to start
OpenAIThe GPT family, with tool calling and vision on supported models
AnthropicThe Claude family, strong at long-context coding tasks
Google GeminiThe Gemini family, with large context and multimodal input
DeepSeekDeepSeek V4 models, cost-efficient coding
GroqExtremely fast inference for open models
xAIThe Grok family
MetaLlama models through a custom OpenAI-compatible endpoint
Alibaba (Qwen)The Qwen family over an OpenAI-compatible endpoint
OllamaModels running locally on your own network — fully offline
LM StudioLocal desktop models — fully offline
GitHub CopilotYour Copilot subscription, if you already have one

Model capabilities

FlagDescription
supportsToolsTool calling
supportsImagesImage processing
supportsReasoningThinking / reasoning display
supportsStreamingSSE streaming

Error handling

HTTPTypeUser message
401AuthenticationInvalid API key. Check Settings → Models.
402PaymentQuota exhausted. Add credits or switch provider.
403Access deniedNo permission for this model.
404Not foundModel not available. Try another.
429Rate limitToo many requests. Wait and retry.
5xxServer errorProvider unavailable. Retrying…

Retry policy: up to 3 attempts with exponential backoff (2s → 4s → 8s; for 429: 5s → 10s → 15s). A failing free-tier model is automatically retried once on a backup model, with a notice in the reply.

Settings

Runtime configuration lives in ~/.config/agent24/ and can be edited with any file manager.

PathPurpose
agent24.jsonMain configuration file
AGENTS.mdBase system prompt / instructions
envUser secrets (API keys)
agents/Agent prompt files
skills/Skill definitions
commands/Custom slash commands
prompts/Custom prompts

Useful toggles

  • show_reasoning — thinking card visibility
  • auto_summarize — auto-summary on session switch
  • compaction_threshold — token % that triggers compaction (default 80)
  • Reply language — mirror the user's language, or force one language
  • Theme — change with /theme (picker dialog)

See also: Skills, MCP, Hooks.

Skills

Markdown instruction packs loaded into the system prompt on demand.

Location

~/.config/agent24/skills/<name>.md

Usage

Load with the skill tool, or just ask — the agent pulls the file into context:

{ "tool": "skill", "params": { "name": "glassmorphism" } }

Bundled skills

SkillPurpose
settings-customizationHow to modify configuration safely
design-stylesSelector & heuristic over the design corpus
minimalism … maximalism10 self-contained UI design styles (bento-grid, glassmorphism, liquid-glass, claymorphism, brutalism, neumorphism, skeuomorphism, spatial-ui and more)

When you ask the app to build any UI, the agent first asks you to pick one of the 10 design styles (or describe your own) and then follows that skill for the whole build. List everything with /skills.

Structure

  • One markdown file per skill (or a directory with SKILL.md)
  • Loaded skills are listed at the bottom of the system prompt
  • User-edited skill files are never overwritten by app updates

MCP

Model Context Protocol — connect external tool servers to extend the agent.

Registering a server

{
  "server": "my-server",
  "instructions": "shown to the model in the system prompt",
  "tools": [ { "name": "create_issue", "inputSchema": { ... } } ]
}

Naming

MCP tools are prefixed with mcp_{serverName}_{toolName} so they never collide with built-ins:

mcp_github_create_issue
mcp_slack_send_message

Flow

  1. The server registers tools and instructions.
  2. Instructions join the system prompt.
  3. Tool definitions join the API tool list.
  4. A model call to mcp_* is routed to the server.

Hooks

Deterministic events that fire on session and tool lifecycle — no model involved.

EventWhen
session.createdNew session starts
session.loadedExisting session opened
session.deletedSession removed
session.renamedTitle changed
message.before_sendUser message leaves the input
message.after_responseAgent response completed
tool.before_executeBefore a tool runs (can block)
tool.after_executeAfter a tool returns
permission.requestedPermission popup shown

Typical uses: telemetry, auto-backup before edits, audit logging and custom notifications.

Sessions

Every conversation is an isolated session with its own database.

Lifecycle

startNewSession()  → id "session_" + timestamp → metadata → session DB → event
loadSession(id)    → set current → load messages → update timestamp → event
deleteSession(id)  → drop DB + folders + metadata → clear memory → event

Storage

DatabasePath
Session DB~/.local/share/agent24/sessions/{id}/session.db
Global DB~/.local/share/agent24/databases/agent24_global.db

Auto features

FeatureTrigger
Auto-titleFirst user message → 3–5 word title
Auto-summarySession switch → conversation summary
Auto-compactionTokens > 80% → summarize & compact
Auto-queueSession busy → queue, then drain

If the session is busy, messages wait in a queue and show Queued (N pending) — they run right after the current task completes.

Troubleshooting

SymptomFix
401 errorsRe-enter the API key: Settings → Models, or /connect
429 rate limitWait — automatic backoff 5s / 10s / 15s — or switch provider
Model not respondingTry another model with /model; a free fallback is offered automatically
Agent stuck in a loopThe doom_loop permission triggers recovery
Context too longRun /compact — chat history stays
UI dump failsEnable the accessibility service, then retry ui_dump
Command not found/help lists commands; custom ones live in ~/.config/agent24/commands/
Session feels slowCheck the queue; switch to a faster model with /model

Privacy Policy

Effective 10 October 2026 · Version 2.0 · Privacy contact: GitHub Issues

This is the privacy policy of Agent 24 ("the app"), an open-source Android application. It explains what user data the app accesses, collects, uses, handles and shares; with whom; and what control you have. The same policy is available inside the app (first-launch consent screen and Drawer → Privacy Policy). We do not sell personal or sensitive user data. Your conversations never pass through servers run by the project.

Consent

On first launch the app shows this policy and asks for your consent before anything is collected. You must tap I Agree & Continue to proceed. Android runtime permissions (accessibility, camera and similar) are requested only when a feature you choose actually needs them.

Data the app handles

DataWhere it livesWhyShared with
Chat historyOn-device SQLite, app-private storageConversation context and exportNever, unless you export it yourself
AI API keysAndroid Keystore + AES-256-GCMAuthenticate with your chosen providerOnly that provider
Your prompts and conversation contextSent to the provider you selectedTo obtain a model replyOnly that provider — its privacy policy governs the transfer
Files you open or createThe folders you choose on your deviceTask executionNever, unless you export or share them
Screenshots, UI dumps, sensor readings (including location where the device allows it)Collected only while a session runs and only when you request a task that needs themTo complete that task; results may be sent to your chosen AI provider as tool outputThat provider only; never linked to device identifiers
Device and compatibility informationOn-deviceCrash diagnosisNever uploaded unless you opt in
Crash logs / usage analyticsOn-device, opt-in, off by defaultBug fixingOnly if you choose to send them

No account. No registration. No advertising identifier. No data broker.

Persistent device identifiers

The app does not collect or use IMEI, IMSI, SIM serial numbers, the Android Advertising ID (AAID) or the App Set ID, and does not link any persistent device identifier to personal or sensitive user data or to resettable device identifiers.

What is sent to AI providers

When you send a message, the app forwards the message text, conversation context and any tool results the model requested to the provider you selected in Settings → Models, over TLS. Each provider's own privacy policy governs that transfer. The project does not relay conversations through its own servers. Removing your API key (Settings → Models → Remove) stops all further calls.

Third-party code and advertising

Components bundled with the app (PDF processing, on-device OCR, the terminal runtime) operate entirely on your device. No embedded SDK sells personal or sensitive user data from this app. When advertisements are shown, they are delivered through the project's own signed remote configuration — no third-party advertising SDK is embedded, no advertising identifier is collected, and no cross-app advertising profile is built.

Security measures

LayerProtection
API keys at restAndroid Keystore + AES-256-GCM (hardware-backed where available)
Chat databaseApp-private storage, readable only by this app
NetworkHTTPS / TLS with certificate pinning
APK integrityDex fingerprint + certificate pinning + native self-test
Remote configurationEd25519-signed payloads, verified before use
Root / hook detectionWarns only — never uploads anything

Retention and deletion

Your data stays on your device for as long as you keep it. The project retains nothing on its own servers, and no account exists — so there is no server-side copy to delete. You can delete everything at any time:

  • In-app: Settings → Delete All Data
  • Full removal: uninstall the app — app-private data is removed with it
  • Keep a copy: Settings → Export Data (Markdown / JSON) before deleting

Your rights

RightHow
See your dataSettings → Export Data (Markdown / JSON)
Delete your dataSettings → Delete All Data, or simply uninstall
Stop analyticsSettings → Privacy → Analytics off (default is off)
Remove API keysSettings → Models → Remove
Withdraw consentUninstall — no server-side copy exists

If you are in the European Union, the United Kingdom or Switzerland, you may also exercise the rights granted by applicable data-protection law (including access, rectification, erasure, restriction and objection) through the contact channels below. The app processes personal data only for purposes reasonably expected by you — completing the tasks you request — and does not sell it.

Children

Agent 24 is not directed at children under 13, and the project does not knowingly collect data from them. Recommended content rating: 13+.

Changes to this policy

Material changes are posted on this page with an updated date and a new version number. The in-app copy asks for your consent again after a version change. Continued use after a change means acceptance.

Contact

Privacy enquiries, requests and security reports are handled through the project's GitHub:

Effective: 10 October 2026 · Version 2.0 · License: MIT · This policy applies to the Agent 24 app and the documentation site you are reading.