Autonomous self-evolving agents. Vision-grounded layered memory and self-written skills for LLM agents that operate your computer.
Photo Agents
Autonomous self-evolving Photo Agents. A perceive / reason / act framework for photo-aware agents that operate your computer the way you do.
"100% autonomous, self-evolving agents."
Jump to: About ยท Install ยท Run ยท GUI clients ยท Troubleshooting ยท FAQ
About
Photo Agents is building the next generation of LLM-driven agents that ground in what they actually see on screen. Instead of dumping longer chat transcripts into a model and hoping for the best we treat memory the way biology does. Vision in. Bound observations stored in layers. Skills written by the agent itself from real success.
The package in this repo is the runtime that ships that idea. It runs locally so you keep ownership of your screen, your data, and your keys.
What it is
Photo Agents is a single Python package that bundles:
- A streaming agent loop that drives any tool-calling LLM through a perceive โ reason โ act cycle.
- A multi-provider LLM router with first-class support for Anthropic Claude (native) OpenAI GPT (native) and a mixin failover session.
- A physical-execution toolset: file I/O, sandboxed code execution (Python / PowerShell / bash), browser automation via a Chrome DevTools Protocol bridge and a layered memory system (working / global / SOP / session archive).
- Pluggable clients: a polished Streamlit web app, a PyQt desktop app, a desktop companion and ready-to-run bots for Telegram, QQ, Feishu, WeCom and DingTalk.
- Optional observability via Langfuse and a cron-style scheduler.
Install
pip install photoagents
or, with every optional client and integration
pip install "photoagents[all]"
Photo Agents needs Python 3.10 or newer. Tested on Windows, macOS, and Linux.
Then make it available to the runtime in any of these ways (checked in order):
- Environment variable:
PHOTOAGENTSAPIKEY=pklive... - Saved config:
~/.photoagents/config.jsonfieldapi_key - Interactive prompt on first run (offered to be saved automatically)
LLM credentials
Copy the credentials template and fill in your provider key:
# from the repo root
cp photoagents/config/keys_template.py credentials.py
then edit credentials.py and uncomment one of the provider configs
The runtime also accepts a JSON form (credentials.json) with the same shape.
Run
# Interactive REPL on your terminal
python -m photoagents
One-shot file-IO mode
python -m photoagents --task my_task --input "List the largest files in this directory."
Reflect / watchdog mode (your check() function fires the next task)
python -m photoagents --reflect photoagents/evolution/scheduler.py
GUI clients
Photo Agents ships several optional frontends. Pick whichever fits your workflow:
| Client | Launch command | | ------------------------------ | --------------------------------------------------- | | Streamlit web app + webview | pythonw -m photoagents.cli.launcher | | Service hub (start/stop) | pythonw -m photoagents.cli.hub | | Desktop app (PyQt) | python -m photoagents.clients.desktop_app | | Desktop companion | pythonw -m photoagents.clients.companion_v2 | | Telegram bot | python -m photoagents.clients.telegram_client | | Feishu / WeCom / DingTalk / QQ | python -m photoagents.clients.<feishu|wecom|...>_client |
The launcher and hub both call the same API key gate before starting any service, so they will refuse to launch anything if your key is missing or revoked.
On-disk state
| Path | What lives there | | --------------------------------- | -------------------------------------------------- | | ~/.photoagents/config.json | API key + license validation cache | | ~/.photoagents/global_mem.txt | Long-term L2 facts | | ~/.photoagents/sessions/ | L4 raw session archives | | ~/.photoagents/skill_index/ | Vector index for skill / SOP search | | ~/.photoagents/temp/ | Per-task scratch (logs, intermediate output) |
Project layout
photoagents/
โโโ auth/ License gate (remote-validated API key)
โโโ cli/ python -m photoagents, GUI launcher, service hub
โโโ clients/ Web / desktop / chat-platform frontends
โโโ config/ credentials.py template
โโโ core/ Agent loop and tool dispatcher
โโโ evolution/ Reflection / scheduler scripts (the "self-evolving" loop)
โโโ integrations/ Optional third-party hooks (Langfuse, etc.)
โโโ llm/ Multi-provider session router
โโโ resources/ System prompt, tool schema, CDP bridge, demo media
โโโ skills/ L3 SOPs and helper modules (browser, vision, OCR, ...)
โโโ web/ DOM simplifier and Chrome DevTools Protocol driver
Troubleshooting
- "API key required to start the agent" โ set
PHOTOAGENTSAPIKEYor run once interactively so it can be saved to~/.photoagents/config.json. - Browser tools not working โ make sure
beautifulsoup4is installed and the CDP bridge config exists underresources/tmwdcdpbridge/. - Wrong LLM picked up โ double check the keyword rules in
credentials.py(native+claude/oai, ormixin).
FAQ
Does this send my screen data anywhere besides my chosen LLM provider? No. The runtime talks to your configured LLM provider and the Photo Agents license endpoint only.
Can I run this fully offline? The agent loop itself needs a network-reachable LLM provider, but memory and skills are stored locally.
Support
- Issues: use the templates under
.github/ISSUE_TEMPLATE/.
Credits
Built and maintained by the Photo Agents team, with thanks to everyone filing issues and sending fixes.
License
MIT. See LICENSE.
Status
Status: beta. APIs may change before 1.0.