feat: install Cursor Agent CLI in image with API key auth
Bake agent into the pi user PATH; pass CURSOR_API_KEY from .env so no browser login is required. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -24,6 +24,7 @@ services:
|
||||
PI_WEB_SESSIOND_SOCKET: /data/pi-web/sessiond.sock
|
||||
PI_CODING_AGENT_DIR: /home/pi/.pi/agent
|
||||
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
|
||||
CURSOR_API_KEY: ${CURSOR_API_KEY:-}
|
||||
volumes:
|
||||
- ./data/pi-web:/data/pi-web
|
||||
- ./data/pi-agent:/home/pi/.pi/agent
|
||||
@@ -56,6 +57,7 @@ services:
|
||||
PI_WEB_ALLOWED_HOSTS: pi.schwenk.online
|
||||
PI_CODING_AGENT_DIR: /home/pi/.pi/agent
|
||||
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
|
||||
CURSOR_API_KEY: ${CURSOR_API_KEY:-}
|
||||
volumes:
|
||||
- ./data/pi-web:/data/pi-web
|
||||
- ./data/pi-agent:/home/pi/.pi/agent
|
||||
|
||||
Reference in New Issue
Block a user