If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
This DDEV add-on installs the Cursor CLI (cursor-agent) into the DDEV web
container and shares your host Cursor config and credentials with the container.
Host config is mounted read-only into seed directories, then mirrored into
writable runtime directories on every ddev start.
ddev add-ons install ddev-assistant-cursor
ddev restart
After installation, make sure to commit the .ddev directory to version control.
cursor-agent into the container at /usr/local/bin/cursor-agentagent as an alias for cursor-agentcursor-agent available on $PATH for ddev ssh and ddev exec~/.cursor into writable container ~/.cursor~/.config/cursor into writable container ~/.config/cursorAfter installation, verify the setup:
ddev exec cursor-agent --version
ddev exec which cursor-agent
Run Cursor from inside the project web container:
ddev ssh
cursor-agent
Or run it directly:
ddev exec cursor-agent --version
The add-on mounts your host ~/.cursor directory into the web container as a
read-only seed at ~/.cred-seed/cursor. It also mounts your host
~/.config/cursor directory read-only at ~/.cred-seed/cursor-auth.
During every container startup, those seeds are mirrored into writable runtime
directories at ~/.cursor and ~/.config/cursor.
Your host config is authoritative. Container-only changes under those runtime paths are removed on restart, then replaced with a fresh copy of the host seeds. Configure Cursor on the host; this add-on mirrors the resulting config and credentials into the DDEV container.
ddev restart
ddev exec which cursor-agent
Contributed and maintained by @e0ipso
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.