New alpha release alert :rotating_light: 1. Docke...
# proj-agent-canvas
q
New alpha release alert 🚨 1. Docker install
Copy code
docker pull ghcr.io/openhands/agent-canvas:1.0.0-alpha.6

docker run -it --rm \
  -p 8000:8000 \
  -v ~/.openhands:/home/openhands/.openhands \
  -v ${PROJECTS_PATH}:/projects \
  ghcr.io/openhands/agent-canvas:1.0.0-alpha.6
2. NPM install
Copy code
npm install -g @openhands/agent-canvas

agent-canvas
🙌 1
NPM install in this version has been fixed Use
npm install -g @openhands/agent-canvas@latest
instead if you installed an earlier version
e
Thanks! Can you also update the README with these install instructions?
👍 1
g
I'm still getting 401s. I'll investigate this evening.
Getting 401s when I install either way. LOL
Must be something with my env, but will try to figure it out as I'm guessing I won't be the only one.
🙏 1
So the OH analysis:
Copy code
The globally installed agent-canvas binary starts the agent-server with a persisted session API key (~/.openhands/agent-canvas/session-api-key.txt) as OH_SESSION_API_KEYS_0, making auth required. However, the pre-built static frontend in the npm package has a different (or empty) VITE_SESSION_API_KEY baked in at publish time, so every API request gets 401 Unauthorized.
I created this PR to address it for both ways of launching: https://github.com/OpenHands/agent-canvas/pull/795 I built and ran this branch locally and it seemed to solve the issue. Just not sure why only @ancient-car-4311 and I are seeing it. Has anyone else started from scratch with the latest build?
e
I am also getting 401s with latest build. Unusable when installing from scratch. Have to install from main to get anywhere
g
This PR should fix that.
@quick-window-91705, if you can give it a quick look in the morning and merge it if you think it's a reasonable fix.
q
gonna take a look in a sec also which pr has the incubator transition? ill push the entrypoint commands there
@flaky-jordan-67349 i merged your fix and @elegant-branch-54423 i've updated the readme with run instructions
🎉 1