#My AI agent is using all my credits and not completing its task
10 messages Β· Page 1 of 1 (latest)
Yes, but Instagram is a rough target for generic agent scraping.
Most common gotchas:
web_fetchwill usually fail there, it does plain HTTP and no JS: https://docs.openclaw.ai/tools/web-fetch- Instagram login/anti-bot often blocks sandboxed or headless automation
- automated login is a bad idea, log in manually in the OpenClaw browser instead: https://docs.openclaw.ai/tools/browser-login
Best path in OpenClaw:
- use the
browsertool, notweb_fetch: https://docs.openclaw.ai/tools/browser - run headful, preferably host browser control
- log in manually first
- keep the task narrow, like one profile / one page / explicit stop condition, otherwise agents can loop and burn credits
- if anti-bot is still the blocker, Browserbase or Firecrawl are the more realistic options: https://docs.openclaw.ai/tools/firecrawl
For your specific case, can you paste:
openclaw --versionopenclaw status --all
- whether you're using browser, web_fetch, or Firecrawl
- the exact task/prompt you gave it
FAQ is here too: https://docs.openclaw.ai/help/faq
If you want real-world user experience in addition to troubleshooting, also ask in #users-helping-users.
So what do I need to do, how do I set it up?
Iβd do it in 2 stages.
Option A, recommended for Instagram
Use the browser tool, log in manually, then keep the task very narrow.
- Make sure browser control is enabled in
~/.openclaw/openclaw.json:
{
browser: {
enabled: true,
defaultProfile: "openclaw",
headless: false
}
}
Docs: https://docs.openclaw.ai/tools/browser
- Start the OpenClaw browser and open Instagram:
openclaw browser start
openclaw browser open https://instagram.com
-
Log in yourself in that browser.
Do not give the model your IG credentials.
Docs: https://docs.openclaw.ai/tools/browser-login -
If your agent is sandboxed and needs the host browser, allow that:
{
agents: {
defaults: {
sandbox: {
mode: "non-main",
browser: {
allowHostControl: true
}
}
}
}
}
- Then give it a tight prompt, for example:
Open only these 5 profile URLs, extract bio, follower count, and latest 3 post captions, then stop and return JSON.