Skip to content

HTTP 500 api_error: insufficient balance (1008) when using free model opencode/big-pickle via Clawdbotย #10718

Closed

Description

@tradcathjun

Summary

I am consistently seeing this error from OpenCode when using it through Clawdbot:

HTTP 500: api๐˜ฆ๐˜ณ๐˜ณ๐˜ฐ๐˜ณ: ๐˜ช๐˜ฏ๐˜ด๐˜ถ๐˜ง๐˜ง๐˜ช๐˜ค๐˜ช๐˜ฆ๐˜ฏ๐˜ต ๐˜ฃ๐˜ข๐˜ญ๐˜ข๐˜ฏ๐˜ค๐˜ฆ (1008)

๐˜›๐˜ฉ๐˜ช๐˜ด ๐˜ฉ๐˜ข๐˜ฑ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ด ๐˜ฆ๐˜ท๐˜ฆ๐˜ฏ ๐˜ต๐˜ฉ๐˜ฐ๐˜ถ๐˜จ๐˜ฉ:
โ€ข ๐˜ ๐˜ฉ๐˜ข๐˜ท๐˜ฆ ๐˜ข ๐˜ฑ๐˜ฐ๐˜ด๐˜ช๐˜ต๐˜ช๐˜ท๐˜ฆ ๐˜ฃ๐˜ข๐˜ญ๐˜ข๐˜ฏ๐˜ค๐˜ฆ ๐˜ช๐˜ฏ ๐˜ฎ๐˜บ ๐˜–๐˜ฑ๐˜ฆ๐˜ฏ๐˜Š๐˜ฐ๐˜ฅ๐˜ฆ ๐˜ข๐˜ค๐˜ค๐˜ฐ๐˜ถ๐˜ฏ๐˜ต (๐˜ข๐˜ณ๐˜ฐ๐˜ถ๐˜ฏ๐˜ฅ $20).
โ€ข ๐˜ ๐˜ฉ๐˜ข๐˜ท๐˜ฆ ๐˜ช๐˜ฏ๐˜ต๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ข๐˜ญ๐˜ญ๐˜บ ๐˜ค๐˜ฐ๐˜ฏ๐˜ง๐˜ช๐˜จ๐˜ถ๐˜ณ๐˜ฆ๐˜ฅ ๐˜Š๐˜ญ๐˜ข๐˜ธ๐˜ฅ๐˜ฃ๐˜ฐ๐˜ต ๐˜ต๐˜ฐ ๐˜ถ๐˜ด๐˜ฆ ๐˜ฐ๐˜ฏ๐˜ญ๐˜บ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ง๐˜ณ๐˜ฆ๐˜ฆ ๐˜ฎ๐˜ฐ๐˜ฅ๐˜ฆ๐˜ญ "๐˜ฐ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ/๐˜ฃ๐˜ช๐˜จ-๐˜ฑ๐˜ช๐˜ค๐˜ฌ๐˜ญ๐˜ฆ".

๐˜๐˜ต ๐˜ญ๐˜ฐ๐˜ฐ๐˜ฌ๐˜ด ๐˜ญ๐˜ช๐˜ฌ๐˜ฆ ๐˜ค๐˜ข๐˜ญ๐˜ญ๐˜ด ๐˜ต๐˜ฐ "๐˜ฐ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ/๐˜ฃ๐˜ช๐˜จ-๐˜ฑ๐˜ช๐˜ค๐˜ฌ๐˜ญ๐˜ฆ" ๐˜ข๐˜ณ๐˜ฆ ๐˜ฃ๐˜ฆ๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ณ๐˜ฆ๐˜ข๐˜ต๐˜ฆ๐˜ฅ ๐˜ข๐˜ด ๐˜ฃ๐˜ช๐˜ญ๐˜ญ๐˜ข๐˜ฃ๐˜ญ๐˜ฆ ๐˜ฐ๐˜ณ ๐˜ณ๐˜ฐ๐˜ถ๐˜ต๐˜ฆ๐˜ฅ ๐˜ต๐˜ฉ๐˜ณ๐˜ฐ๐˜ถ๐˜จ๐˜ฉ ๐˜ข ๐˜ฑ๐˜ข๐˜ช๐˜ฅ ๐˜ฑ๐˜ข๐˜ต๐˜ฉ, ๐˜ค๐˜ข๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ "๐˜ช๐˜ฏ๐˜ด๐˜ถ๐˜ง๐˜ง๐˜ช๐˜ค๐˜ช๐˜ฆ๐˜ฏ๐˜ต ๐˜ฃ๐˜ข๐˜ญ๐˜ข๐˜ฏ๐˜ค๐˜ฆ (1008)" ๐˜ฆ๐˜ณ๐˜ณ๐˜ฐ๐˜ณ. ๐˜ณ๐˜ฆ๐˜ฅ๐˜ฅ๐˜ช๐˜ต (๐˜ฉ๐˜ต๐˜ต๐˜ฑ๐˜ด://๐˜ธ๐˜ธ๐˜ธ.๐˜ณ๐˜ฆ๐˜ฅ๐˜ฅ๐˜ช๐˜ต.๐˜ค๐˜ฐ๐˜ฎ/๐˜ณ/๐˜ฐ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ๐˜Š๐˜“๐˜/๐˜ค๐˜ฐ๐˜ฎ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต๐˜ด/1๐˜ฒ8๐˜ฐ๐˜ด6๐˜ด/๐˜ฅ๐˜ฐi๐˜ฉ๐˜ข๐˜ท๐˜ฆto๐˜ฅ๐˜ฆ๐˜ฑ๐˜ฐ๐˜ด๐˜ช๐˜ตmoney๐˜ช๐˜ฏ๐˜ต๐˜ฐmy๐˜ข๐˜ค๐˜ค๐˜ฐ๐˜ถ๐˜ฏ๐˜ตto๐˜ถ๐˜ด๐˜ฆ/)

๐˜Œ๐˜ฏ๐˜ท๐˜ช๐˜ณ๐˜ฐ๐˜ฏ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต

โ€ข ๐˜–๐˜ฑ๐˜ฆ๐˜ฏ๐˜Š๐˜ฐ๐˜ฅ๐˜ฆ ๐˜ข๐˜ค๐˜ค๐˜ฐ๐˜ถ๐˜ฏ๐˜ต: ๐˜ฑ๐˜ข๐˜ช๐˜ฅ ๐˜ฃ๐˜ข๐˜ญ๐˜ข๐˜ฏ๐˜ค๐˜ฆ (๐˜ข๐˜ฃ๐˜ฐ๐˜ถ๐˜ต $20 ๐˜ข๐˜ท๐˜ข๐˜ช๐˜ญ๐˜ข๐˜ฃ๐˜ญ๐˜ฆ)
โ€ข ๐˜”๐˜ฐ๐˜ฅ๐˜ฆ๐˜ญ: ๐˜ฐ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ/๐˜ฃ๐˜ช๐˜จ-๐˜ฑ๐˜ช๐˜ค๐˜ฌ๐˜ญ๐˜ฆ (๐˜ข๐˜ฅ๐˜ท๐˜ฆ๐˜ณ๐˜ต๐˜ช๐˜ด๐˜ฆ๐˜ฅ ๐˜ข๐˜ด ๐˜ข ๐˜ง๐˜ณ๐˜ฆ๐˜ฆ/๐˜ด๐˜ต๐˜ฆ๐˜ข๐˜ญ๐˜ต๐˜ฉ ๐˜ฎ๐˜ฐ๐˜ฅ๐˜ฆ๐˜ญ ๐˜ง๐˜ฐ๐˜ณ ๐˜ฏ๐˜ฐ๐˜ธ) ๐˜ณ๐˜ฆ๐˜ฅ๐˜ฅ๐˜ช๐˜ต (๐˜ฉ๐˜ต๐˜ต๐˜ฑ๐˜ด://๐˜ธ๐˜ธ๐˜ธ.๐˜ณ๐˜ฆ๐˜ฅ๐˜ฅ๐˜ช๐˜ต.๐˜ค๐˜ฐ๐˜ฎ/๐˜ณ/๐˜ฐ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ๐˜Š๐˜“๐˜/๐˜ค๐˜ฐ๐˜ฎ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต๐˜ด/1๐˜ฑ๐˜ณ๐˜ซ๐˜ฉ๐˜ถ๐˜ฃ/๐˜ช๐˜ดopencode๐˜ป๐˜ฆ๐˜ฏbig๐˜ฑ๐˜ช๐˜ค๐˜ฌ๐˜ญ๐˜ฆfree/)
โ€ข Client: Clawdbot (local gateway)
โ€ข Channel: Telegram bot connected to Clawdbot
โ€ข OS: Windows 11 with WSL2 (Ubuntu) running Clawdbot
โ€ข Clawdbot version: 2026.1.24-3 (885167d)
โ€ข Network: Telegram connectivity from Clawdbot is now working (DNS issue fixed by pinning api.telegram.org to IPv4 in /etc/hosts)

What I did

  1. Set my default model to the free OpenCode model:

clawdbot config set agents.defaults.model.primary "opencode/big-pickle"
clawdbot gateway restart

  1. Verified with "clawdbot logs" that:
    โ€ข The gateway starts with: agent model: opencode/big-pickle
    โ€ข Telegram provider is ok (my bot username shows correctly)
    โ€ข There are no more "fetch failed" or "setMyCommands failed" errors to Telegram

  2. Ran "clawdbot doctor" and then "clawdbot doctor --fix":
    โ€ข No critical provider/model warnings were reported
    โ€ข Config file ~/.clawdbot/clawdbot.json was updated and Clawdbot appears healthy

  3. Sent a normal chat message to my Telegram bot, which triggers a Clawdbot run with provider "opencode" and model "big-pickle".

Actual behavior

The model run starts and then fails with an error like:

HTTP 500: api๐˜ฆ๐˜ณ๐˜ณ๐˜ฐ๐˜ณ: ๐˜ช๐˜ฏ๐˜ด๐˜ถ๐˜ง๐˜ง๐˜ช๐˜ค๐˜ช๐˜ฆ๐˜ฏ๐˜ต ๐˜ฃ๐˜ข๐˜ญ๐˜ข๐˜ฏ๐˜ค๐˜ฆ (1008) (๐˜ณ๐˜ฆ๐˜ฒ๐˜ถ๐˜ฆ๐˜ด๐˜ตid: 05c6cd5820af43aca312bd84ebc5f963)

From my perspective:
โ€ข I have sufficient account balance.
โ€ข I am not intentionally using any paid models.
โ€ข All agent defaults are set to "opencode/big-pickle". github (#7499)

Expected behavior

โ€ข Requests using "opencode/big-pickle" should be treated as free and should not fail due to balance checks, as long as the free tier is active. reddit (https://www.reddit.com/r/opencodeCLI/comments/1q8os6s/do๐˜ชhave๐˜ต๐˜ฐdeposit๐˜ฎ๐˜ฐ๐˜ฏ๐˜ฆ๐˜บinto๐˜ฎ๐˜บaccount๐˜ต๐˜ฐuse/)
โ€ข If there are specific limits, quotas, or regional restrictions for this model, the error message should explain that instead of a generic "insufficient balance (1008)".

Additional context

โ€ข This error started surfacing clearly after I fixed a separate Telegram connectivity issue. Previously, the gateway could not reach api.telegram.org, so responses failed earlier in the chain.
โ€ข Now that Telegram connectivity is fixed, the only remaining failure is this "insufficient balance (1008)" from OpenCode when calling "opencode/big-pickle".
โ€ข I am happy to run test commands, provide additional log snippets, or confirm organization/project IDs on my account if that helps debug whether this is a routing or billing configuration issue on the backend. github (#7499)

Activity

  1. github-actions commented on Jan 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. github-actions commented on Mar 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

zenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions