Learn from a Grok Bot that leaked its owner's API keys into its own logs
Elijah Muraoka says his Grok Bot leaked all his API keys into its own server logs and then told him it couldn't delete them; the post drew 100K+ views and a debate over whether keeping keys in env vars was user error.
Source
@elijahmuraoka_ on X · 2026-10-22
Written in our own words. Credit to the original author. Link checked 2026-10-23.
What they did
Elijah Muraoka says his Grok Bot leaked all his API keys into its own server logs and then told him it couldn't delete them; the post drew 100K+ views and a debate over whether keeping keys in env vars was user error.
Result (as claimed)
A cautionary case for keeping agent secrets in a vault instead of plain environment variables.
Tools they used
Cost: Grok Bot: from $30/mo.
Set it up
Map the task
Write the trigger, the inputs, the decisions and the output. Note which steps need a human yes.
Connect the tools
Set up Grok Bot with the narrowest permissions that work. Use a test account or sandbox first.
Build the workflow
Create the steps in order. Add an approval step before anything sends, pays or deletes.
Run it on real but low-stakes data
Run a few times, read every output, and fix prompts or rules that misfire.
Schedule and monitor
Turn on the schedule or trigger, and add a daily summary or alert so you notice failures.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Learn from a Grok Bot that leaked its owner's API keys into its own logs What the original author did: Elijah Muraoka says his Grok Bot leaked all his API keys into its own server logs and then told him it couldn't delete them; the post drew 100K+ views and a debate over whether keeping keys in env vars was user error. Reported result (as claimed by the author): A cautionary case for keeping agent secrets in a vault instead of plain environment variables. Source: https://x.com/elijahmuraoka_/status/2113352207672209738 Tools they used: Grok Bot Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Learn from a Grok Bot that leaked its owner's API keys into its own logs What the original author did: Elijah Muraoka says his Grok Bot leaked all his API keys into its own server logs and then told him it couldn't delete them; the post drew 100K+ views and a debate over whether keeping keys in env vars was user error. Reported result (as claimed by the author): A cautionary case for keeping agent secrets in a vault instead of plain environment variables. Source: https://x.com/elijahmuraoka_/status/2113352207672209738 Tools they used: Grok Bot Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Learn from a Grok Bot that leaked its owner's API keys into its own logs What the original author did: Elijah Muraoka says his Grok Bot leaked all his API keys into its own server logs and then told him it couldn't delete them; the post drew 100K+ views and a debate over whether keeping keys in env vars was user error. Reported result (as claimed by the author): A cautionary case for keeping agent secrets in a vault instead of plain environment variables. Source: https://x.com/elijahmuraoka_/status/2113352207672209738 Tools they used: Grok Bot Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
The Daily 5
Get five new use cases tomorrow morning
Free. Real sources. Unsubscribe any time.
Guides for this use case
How to set up Grok Bot agents for real work · How to share passwords and logins with an AI agent safely
Related use cases
Use one Grok Bot for a trading bot, chart posts, short videos and a star map app
He listed ten things he actually did with Grok Bot, including an Upbit trading bot backtested and deployed on an AWS server, X posts with auto-generated charts, short videos made with Grok Imagine, and a Gyeongbokgung star map web app comparing Hubble and JWST shipped to GitHub Pages.
Let a Grok Bot learn your junk mail and clean your Gmail after you approve its rules
Inbox Junkyard Dog is a Grok Bot that watches a Gmail inbox for a few days to learn what is junk, shows its rules and waits for approval, then unsubscribes and trashes up to 50 junk emails a day with a weekly check-in.
Stretch Grok Bot usage by handing bulk work to your Codex subscription
A cold-email operator had his chief-of-staff bot install the Codex CLI on its computer and sign in with ChatGPT, plus an API key for cheaper models. Grok Bot keeps the judgment calls (Calendly booking, CRM follow-ups) and offloads CSV classification, scrapers, spintax and transcript summaries.
Stand up 146 AI employees from Grok Bot templates
He set up 146 AI employees from Grok Bot templates.