An AI-powered agent for microscopy image analysis. Agentic-J runs ImageJ inside a container together with an LLM-driven chat panel that can plan analyses, write and execute Groovy macros, install plugins, and report results.
Prerequisites:
- Docker Desktop (or Docker Engine + Compose on Linux)
- Git and Git LFS — the RAG vector database (
qdrant_data/**/storage.sqlite) is stored via Git LFS, so a plain clone without LFS will give you stub files that won't work. - ~8 GB RAM and ~30 GB free disk
- An OpenAI or OpenRouter API key
Steps:
# 1. One-time: enable Git LFS for your user (skip if already done)
git lfs install
# 2. Clone the repository (LFS files download automatically)
git clone https://github.com/MMV-Lab/Agentic-J.git Agentic-J
cd Agentic-J
# If you cloned BEFORE running `git lfs install`, hydrate the LFS files now:
# git lfs pull
# 3. Configure credentials
cp .env.template .env
# edit .env and fill in OPENAI_API_KEY or OPEN_ROUTER_API_KEY
# 4. Start the container
docker compose upThen open http://localhost:6080/vnc.html in your browser. Fiji and the Agentic-J chat panel run inside the virtual desktop.
If no API key is set in .env, a setup wizard appears in the browser before Fiji launches.
Place images you want to analyse in ./data/ — the agent sees them at /app/data inside the container.
Verifying LFS worked: after cloning, check that
qdrant_data/collection/BioimageAnalysisDocs/storage.sqliteis several MB, not a ~130-byte text file starting withversion https://git-lfs.github.com/.... If it's a stub, rungit lfs install && git lfs pull.
The full user guide lives in user_guide/:
| Guide | Contents |
|---|---|
| 01 Getting Started | Prerequisites, .env setup, API keys, starting the container |
| 02 Interface & Agents | noVNC interface, agent architecture, supported plugins |
| 03 Prompting | How to write effective prompts |
| 04 Data, History & Reports | File layout, chat history, issue reports |
| 05 Security | Security model, network exposure, key handling |
src/imagentj/— main Python package (agents, tools, RAG)skills/— per-plugin documentation packs the agent retrieves at runtimebundled_jars/,bundled_cache/— JARs and a pre-warmed jgo/Maven cache used to build the image offlinedata/— image data and per-run outputs (mounted into the container)models/— Cellpose models (bind-mounted at runtime)
Running on the host is supported but not the recommended path. See environment.yml for the conda environment, set FIJI_PATH to your local Fiji install, and run python gui_runner.py (GUI) or python run.py (CLI).
Use the Report Issue button in the chat panel, or email agentj.help@gmail.com.
Apache License 2.0 — see LICENSE and NOTICE. Copyright © 2026 ISAS e.V.