- Documentation
- Use Palepale in OpenCode
Use Palepale in OpenCode
Connect OpenCode with your API key and choose an available model.
Connect
Install Palepale CLI and OpenCode V2. Run:
palepale opencodeopencodeChoose a Palepale model in OpenCode. Setup backs up and merges your configuration, adds the model refresh plugin and saves a private inference key. The backup keeps your original JSONC comments. Trial credit works in Palepale CLI.
Attach an image
Rerun palepale opencode and restart OpenCode to refresh capabilities. Choose an available model marked Text + image input. Set PALEPALE_MODEL to that model ID to try an attachment:
opencode run -m "palepale/$PALEPALE_MODEL" --file screenshot.png "What is in this image?"Manage spend and long sessions
Set account or key caps in Billing. Confirmed paid usage counts toward those caps. The separate --budget flag applies to runs started with palepale.
OpenCode V2 compacts automatically. If a request exceeds the model's context or upload limit, compact sooner. Compaction settings.
OpenCode V2 documents automatic timeout retries. Its setting to disable them is unverified. Check Usage after a lost response because the request may still be billable. Give each new turn its own idempotency key if your client supports it.
Disconnect
Close OpenCode, run palepale opencode --logout, and reopen it. This removes the Palepale provider, refresh plugin and local key.
Need a hand?
Open Palepale Discord for account support. Compare model rates or read about wallet billing.