Skip to main content

Config & data directories

  • Most settings are done in the AI Agent window โ€” no manual file editing required. This page covers common options; file paths are for backup and troubleshooting.
  • On first use, AI Settings requires a data storage directory to avoid data loss.

Settings dialogโ€‹

Path: AI chat or Workflow editor โ†’ toolbar "Settings"

SettingDescription
Data storage directoryWhere workflows, chat history, model config, etc. are stored
Max devices per taskMax phones running at once per task (default 100); restart AI after changing
Auto-save workflow on tab switchWhether the editor auto-saves when switching tabs; takes effect immediately

If prompted that the data directory is not ready on first open, follow the prompt into Settings to confirm.

After changing data directory

Restart AI (click "Start AI" again or close and reopen the window). Logs stay in aibin/log/ and do not move with the data directory.

LLM configurationโ€‹

Path: toolbar "Model config"

Multiple profiles supportedโ€‹

For example, one DeepSeek profile for daily use and one local Ollama for testing. Each profile needs:

FieldDescription
NameDisplay name in the UI
API URLAPI endpoint from your provider
Model namee.g. deepseek-chat
API keyAPI Key

The UI provides templates for DeepSeek, OpenAI, Ollama, etc. โ€” pick one and set the key.

Where to select a profileโ€‹

  • AI chat: below the input box, choose which profile this session uses
  • Workflow AI panel: choose which profile when generating flows

After saving, you generally do not need to restart; key changes take effect immediately.

Without LLM configuredโ€‹

Chat accepts only simple commands like list workflows, run โ€ฆ โ€” see AI chat.

Vision model VLM (advanced)โ€‹

Workflow "VLM ยท visual locate" steps and semantic element lookup use VLM as a fallback. Config is stored in vlm_config.json under the data directory.

note

There is no dedicated settings UI yet โ€” edit that file manually; a graphical UI may come in a later version. Most users can skip this and use node capture or image/color matching instead.

OCR engine notesโ€‹

Workflow OCR steps support ocrType (default paddleOcrNcnnV5):

ocrTypeDescription
paddleOcrNcnnV5Default, local NCNN
v5ONNX PaddleOCR v5
v4ONNX PaddleOCR v4
ocrLiteOcrLite

Cached per device + engine type: if one phone uses multiple types, each occupies memory separately; released after a formal task ends; next recognition may reload (first run slightly slower). OCR preview in the editor keeps the engine loaded for continuous debugging.

Template directory for image matchingโ€‹

If you set a working directory in Flow config, create under it:

{working directory}/assets/templates/ โ† store PNG/JPG templates

In steps, set templatePath to a relative path, e.g. assets/templates/btn_login.png. See Image/color matching.

What's in the data directory (for backup)โ€‹

Default root: aibin/data/aiagent/ (or the path you set in Settings)

Folder / fileContents
workflows/All workflows
runtime_data/Files produced at runtime (default save runtime_data/{deviceId}/, read runtime_data/readdata/)
llm_profiles.jsonLLM configuration
vlm_config.jsonVLM configuration
chat/sessions/Chat history
tasks.jsonRecent task records
external_registry.jsonExternal CLI / HTTP / MCP registration
audit/Output files from some tasks

Backup / migration: copy the entire data directory; logs in aibin/log/ are optional.

In the workflow library, Open folder quickly locates a flow's files.

Advanced: environment variables (optional)โ€‹

Only if you are comfortable with command-line deployment. Can override default LLM URL, keys, etc., e.g. IOS_AI_LLM_API_KEY. For daily use, Model config in the UI is enough.

Next stepsโ€‹