Install Agent Canvas, connect a local Lemonade model, and run your first OpenHands coding agent on your AMD Ryzen™ AI.
Overview
OpenHands is an AI software agent
that can write code, run commands, browse the web, and edit files in a real
workspace. Instead of copying suggestions out of a chat window, you point the
agent at a project folder and let it do the work: implement a feature, fix a
bug, write tests, or explain a codebase.
Agent Canvas is the recommended
browser UI for running OpenHands. A single agent-canvas command starts the
agent server, the automation backend, and the web frontend together, so you can
drive a conversation with the agent from your browser.
To keep everything on your AMD system, the agent talks to a local model served
by Lemonade Server. Lemonade exposes that model through an OpenAI-compatible
API, so Agent Canvas can configure it like any other OpenAI-style endpoint
while the model, your code, and the conversation context all stay on your
machine.
In this playbook, you will start a local model, launch Agent Canvas, point it
at that model, and run your first coding task against a real project folder.
What You’ll Learn
How to start Lemonade Server and confirm a local model answers chat requests
How to install and launch Agent Canvas from the npm package
How to configure Agent Canvas to use a local Lemonade model as the LLM
How to start an OpenHands conversation and watch the agent edit files and run
commands in a workspace
How to review what the agent changed and steer it with follow-up messages
Core Concepts
Concept
What it is
Where it fits in this playbook
Lemonade Server
A local LLM serving platform built for AMD hardware that exposes an OpenAI-compatible API. Your data never leaves your machine.
Runs the model that powers the agent.
OpenHands
An AI software agent that reads and edits files, runs shell commands, and browses the web inside a workspace.
The agent you drive from the chat.
Agent Canvas
The browser UI and backend that runs OpenHands conversations and shows tool calls and file changes.
Launches the stack and hosts your conversation.
Workspace
The project folder the agent is allowed to read and modify.
ifcommand-vrocminfo>/dev/null2>&1 && rocminfo|grep-qgfx; then
echo"OK: GPU visible to ROCm"
else
echo"GPU not visible via rocminfo">&2
exit1
fi
Advanced: increasing GPU memory (optional)
You may need to increase the memory allocated to the GPU to run certain larger
models or longer contexts. These devices use unified memory — the GPU shares
system RAM — so this means letting the GPU claim more of that shared pool. Leave
roughly 20% of system RAM for the operating system. This step is optional; the
default allocation is enough for most workloads.
On Windows, adjust the memory in AMD Software: Adrenalin Edition: open it and
navigate to Performance → Tuning → AMD Variable Graphics Memory. Set the value
you need and reboot for the change to take effect.
Backup method (BIOS). If your system does not show the Variable Graphics
Memory option in Adrenalin (some OEM systems hide it), set the UMA Frame
Buffer Size in the system BIOS/UEFI instead: reboot, enter setup (usually
Del, F2, or Esc), find UMA Frame Buffer Size — also labeled
Integrated Graphics or dedicated GPU memory, often under Advanced or
AMD CBS → NBIO Common Options — set it to the size you need, save, and
reboot. Menu names vary by vendor, and some BIOS do not expose it either.
On the AMD Ryzen™ AI Halo, adjust the shared memory in the pre-installed
AMD Ryzen™ AI Developer Center: open it, go to the Settings tab, and under
Graphics Performance Settings increase the Shared Video Memory slider.
Click Apply Changes and reboot for the change to take effect.
On Linux, raise the shared GTT/TTM pool so the GPU can map more system memory.
AMD recommends setting the minimum dedicated VRAM in the BIOS (0.5 GB) so the
maximum is available as shared memory.
Install the amd-debug-tools helper:
Terminal window
sudoaptinstallpipx
pipxensurepath
pipxinstallamd-debug-tools
Query the current shared-memory limit:
Terminal window
amd-ttm
Raise it (value in GB — pick a size that leaves headroom for the OS):
Terminal window
amd-ttm--set<NUM>
Reboot for the change to take effect.
Check for Software Updates
Before starting, ensure your Ryzen AI Halo has the latest software installed. Open the AMD Ryzen™ AI Developer Center and check for available updates, both to the app itself and additional software.
Go to the Updates tab. If updates are available, install them and reboot before continuing.
Go to the Manage tab. If updates are available, install them and reboot before continuing.
Prerequisites
Lemonade
Installing Lemonade
Download the latest installer from lemonade-server.ai and run the .msi file. Two installers are published, and they are not interchangeable:
Download the Windows 64-bit Installer from nodejs.org
Run the installer and follow the prompts
Verify installation:
Terminal window
node --version
npm --version
Check the version range your tool supports. The current release on nodejs.org is often
newer than a given tool’s supported range, and installing outside that range can fail with
native-build or EBADPLATFORM errors. Use
nvm-windows to install and select a specific
version:
Lemonade Server installed and able to serve the model below.
Node.js 22.12 or later and npm (used by the agent-canvas CLI).
uv, the Python package manager that Agent Canvas uses to manage the agent
server environment. If your system does not already have it, install it from
the uv installation guide
before launching Agent Canvas.
Docker Desktop for Windows,
installed and running. On Windows, the Agent Canvas stack runs from the
published Docker image, which bundles Node.js, uv, and the
@openhands/agent-canvas package, so you do not install those on the host.
A project folder to work in. This can be any local git repository or code
directory you want the agent to work on.
1. Start Lemonade Server
Start the model from the Lemonade CLI:
Terminal window
lemonadeconfigsetllamacpp.backend=vulkan
lemonadeconfigsetctx_size=65536
lemonaderun"Qwen3.6-35B-A3B-GGUF"
Choose a model that fits your hardware.Qwen3.6-35B-A3B-GGUF (~20 GB) is a strong coding model but needs a large memory pool. If your device has limited memory or GPU VRAM, pick a smaller GGUF model from the Lemonade model library instead and use that model ID throughout this playbook.
{"role": "user", "content": "Reply with exactly: OK"}
],
"temperature": 0,
"max_tokens": 64
}'|python3-mjson.tool
If this returns a choices array, Lemonade is ready for Agent Canvas.
3. Install and Launch Agent Canvas
Install the published Agent Canvas package globally:
Terminal window
npminstall-g@openhands/agent-canvas
Then start the full stack from a terminal:
Terminal window
agent-canvas
By default, Agent Canvas starts on http://localhost:8000. Open that URL in
your browser. The port is not special — if 8000 is already in use, pass any
free port with --port (or -p) when you launch Agent Canvas:
Terminal window
agent-canvas--port3000
Then open http://localhost:3000 instead. The default local backend should show
as healthy on the home screen.
The agent-canvas command starts the agent server, the automation backend, and
the web frontend together. You only need this one command to run OpenHands
locally.
On Windows, run the published Agent Canvas container image with Docker Desktop.
The image bundles the Agent Server, automation backend, and web frontend, so you
do not install Node.js, uv, or the CLI on the host.
First, create the config and workspace folders the container mounts:
Open http://localhost:8000/canvas in your browser. If port 8000 is already in
use, map a different host port, for example -p 8080:8000, and open
http://localhost:8080/canvas instead.
The .openhands mount persists your LLM profile and settings across container
restarts. The rest of this playbook configures everything through the Agent
Canvas UI in your browser.
4. Configure the Local LLM
On first launch, Agent Canvas opens an onboarding flow. In that flow:
Keep OpenHands selected as the agent and click Next.
On Set up your LLM, select Advanced.
Keep Authentication set to API key.
Set Custom Model to openai/Qwen3.6-35B-A3B-GGUF.
Set Base URL to http://127.0.0.1:13305/api/v1.
On Windows the stack runs in a container, which cannot reach the host at
127.0.0.1. Use http://host.docker.internal:13305/api/v1 instead so the
containerized agent can reach Lemonade running on the Windows host.
For API Key, enter any non-empty placeholder such as lemonade-local.
Lemonade does not require a real key, but the OpenHands client needs a value
to send.
Click Next.
The completed Advanced settings should look like this. The API key field is
masked by the UI.
Agent Canvas saves these values as an LLM profile. If your version asks you to
name that profile, use a no-space name such as lemonade-local. If you change
models later, open Settings > LLM and update the same Advanced fields. You
can switch saved profiles from the chat input with the /model command.
5. Open a Workspace
The agent can only read and modify files inside a workspace you choose. Before
starting a task, point Agent Canvas at your project folder:
From the home screen, choose Open Workspace.
Select the folder that contains your project (for example, a git repository
you want the agent to work on).
Start a new conversation in that workspace.
Everything the agent does—reading files, running commands, editing code—is
scoped to that workspace.
6. Run Your First Coding Task
With the workspace open and the local LLM selected, type a concrete task into
the chat. A good first task is small and verifiable, for example:
Create a new file called hello.py that defines a function greet(name) that
returns "Hello, {name}!", and add a small test that prints greet("World")
when run as a script.
Watch the conversation timeline. OpenHands will:
Read the workspace to understand the layout.
Create hello.py with the requested function and test block.
Optionally run python3 hello.py to verify the output.
Report what it did and any command output in the chat.
You should see the new file appear in the workspace, and the agent’s final
message should describe the change it made. This is the payoff moment: the
agent wrote and ran real code in your project folder.
7. Review and Steer the Agent
After the agent finishes a step, review its work before accepting the next one:
File changes: use the workspace file browser or the agent’s diff view to
see exactly what was added, changed, or deleted.
Command output: expand any command the agent ran to see stdout, stderr,
and the exit code.
Follow-ups: if the result is not what you wanted, reply in the same
conversation with a correction. The agent keeps the prior context and
iterates on the same files.
For example, if the test did not print the expected greeting, reply:
The script did not print anything. Run python3 hello.py and fix it so the
greet("World") test prints to stdout.
The agent will re-read the file, run the command, diagnose the issue, and edit
the file again—all in the same conversation.
Troubleshooting
agent-canvas is not on PATH: reinstall with
npm install -g @openhands/agent-canvas and confirm the npm global binary
directory is on your PATH before agent-canvas can be launched from a new
terminal.
npm install -g fails with a permissions error: configure a user-owned
global npm directory, then reopen the terminal and install Agent Canvas again.
uv is missing: install it from
the uv installation guide.
Agent Canvas uses uv to manage the agent server Python environment.
docker pull or docker run fails to connect: make sure Docker Desktop
is running (its whale icon is in the system tray) and that the engine has
finished starting. docker version should print both a Client and a Server
section.
The container starts but the backend never becomes healthy: the first
launch initializes the Agent Server inside the container; give it a minute or
two, then check docker logs <container> for errors.
The container cannot reach Lemonade: the container reaches the host via
host.docker.internal. Confirm Lemonade is serving on the Windows host with
lemonade status, and use http://host.docker.internal:13305/api/v1 as the
Base URL when configuring the LLM.
The UI loads but the backend shows unhealthy: wait a minute or two for the
agent server to finish starting, then refresh. If it stays unhealthy, restart
the stack and check the logs for errors.
Lemonade chat requests fail with a connection error: confirm
curl -fsS "http://127.0.0.1:13305/api/v1/health" succeeds and that
Lemonade is still serving the model with lemonade status.
The agent errors with a context-length or token-limit message: start a
fresh conversation so the agent does not carry an oversized history. If it
keeps happening, restart Lemonade with a larger ctx_size than the default
65536 (for example ctx_size=131072), memory permitting.
The agent produces low-quality or incomplete edits: switch to a larger
model in Lemonade, or give the agent a smaller, more concrete task and let it
finish before asking for the next change.
Next Steps
Try a larger task in the same workspace, such as adding a unit test file or
fixing a known bug, and review the agent’s diff before keeping the change.
Connect an MCP server such as GitHub or Slack under Customize so the
agent can read issues or post updates while it works.
Save several LLM profiles (a fast small model and a stronger large model) and
switch between them with /model mid-conversation.
Move on to OpenHands automations to
turn recurring development loops into scheduled or event-triggered agent runs.