A poRTLe agent that uses opencode-ai for RTL code generation.
-
Configure API Key
Copy the example auth file and add your OpenRouter API key:
cp auth.example.json auth.json
Edit
auth.jsonand replaceEMPTYwith your OpenRouter API key:{ "openrouter": { "type": "api", "key": "sk-or-v1-your-api-key-here" } }Get an API key at openrouter.ai or use any other model provider supported by opencode.
If poRTLe fails to build the opencode agent, you can manually build it for debugging:
# First, ensure the base image is built
cd ../../docker && ./build.sh
# Then build the agent
./build_agent.sh- The
auth.jsonfile is copied into the container at build time - All OpenCode state and logs persist in
/code/rundir/.opencode/after container exit