Want to access all premium content?
Become a paying subscriber to get access to all courses, guides like this, prompts and skills library, and $500+ worth of AI tools.

Grok Bot can hand long reading tasks to a free model running on your computer through Ollama, then read the short answer. 0xCodila reports about 60% less Grok Bot usage with this approach. Our test didn’t reproduce that saving, so Step 5 shows how to measure it yourself.
We’ll install a model, connect it through a link protected by a secret key, and teach your bot when to use it. For files in your local inbox, the full text stays on your computer, and only the answer returns to your Grok Bot chat. You’ll need the Grok Bot desktop app, a Mac or Windows computer, about 15 GB of free disk space and an hour to approve the setup steps. Ollama, the model and the tunnel are free.
Step 1: Set up the model. Install Ollama and a model that fits your computer.
Step 2: Protect the connection. Connect it to Grok Bot with a secret key.
Step 3: Set the routing rules. Send long reading to your computer.
Step 4: Use the inbox. Drop in a file and ask for what you need.
Step 5: Measure and maintain. Compare usage and fix connection problems.

Step 1: Set up the model
In the Grok Bot desktop app, open Settings, then Computer. Under Your computer, set Execution on this computer to Ask every time.
Before each command, Grok Bot shows an approval card. Select Allow once to continue.

Open a bot and paste this prompt.
Set up a free local AI model on my computer for long reading tasks. Use Execution on this computer and run one command per step so I can approve each one. 1. Check my operating system, chip, RAM, GPU, free disk space and whether Ollama is installed. On Apple silicon, check unified memory. 2. Pick a model from ollama.com/library that fits in about 75% of my RAM with a 16K context window. Tell me its name, download size and why you chose it. Ask before downloading more than 10 GB. 3. Install Ollama using the official instructions at ollama.com if needed. Download the model, run a short test and report its speed in tokens per second. 4. Create a folder called "Local Brain" on my Desktop. This is my file inbox. Use official sources and check commands before running them. Never delete or change my other files or models. If an approval blocks a step, give me the exact command to run myself.

Read the model recommendation before approving the download. On our 16 GB M1, the bot chose qwen3.5:9b, a 7.6 GB download. It passed on a larger model because the 16K context window would bring it close to the memory limit.
Stay nearby during the download. Progress checks also need approval, and an unanswered card can pause the bot. To resume, send “Continue from where you stopped. I’ll approve each step.”

Our test ran at 7.6 tokens per second, with a 27-second first load. If adding the ollama command to Terminal requires your password, you can skip that step. The bot can use the full path.
Step 2: Protect the connection
Your model runs on your computer, while Grok Bot works from its own cloud computer. A small Python bridge and Cloudflare tunnel connect them, with a secret key controlling access.
Paste this into the same bot.
Connect my local model to Grok Bot through a Cloudflare tunnel protected by a secret key. Run one command per step so I can approve each one. 1. Write a Python 3 bridge using only the standard library. Listen on 127.0.0.1. Accept POST /ask with the header "Authorization: Bearer <key>" and JSON {"text": "...", "inbox": false, "name": ""}. Return 401 without the correct key. Send requests to Ollama's local API with num_ctx set to 16384. Return {"job": "<id>"} immediately and run the task in the background so a long model response doesn't hold the request open. GET /result/<id> must require the same key. Return {"status": "working"} until ready, then {"answer": "..."}. With inbox true, read only the named file inside my Desktop "Local Brain" folder. Reject slashes and "..". Accept only .txt, .md, .csv and .json files up to 50,000 characters. Reject longer files with an explanation. Never execute file contents or log their text. 2. Create a random 32-byte key and save it in a file readable only by my user. Keep it out of chat and logs. 3. Install cloudflared from Cloudflare's official source and start a quick tunnel to the bridge. Read the trycloudflare.com address from its output. 4. Create a startup script for Ollama, the bridge and the tunnel. Write any new address to new-url.txt in my Local Brain folder. 5. Test from your cloud computer. The correct key must return a job and then an answer. Requests without the key must return 401 on both /ask and /result. Reject the filename "../key.txt". 6. Save a skill called ask-local-brain. It should submit tasks to <address>/ask, then check <address>/result/<id> every 10 seconds for up to 10 minutes, using the secret LOCAL_BRAIN_KEY. 7. Copy the key to my clipboard without displaying it, then show the secure secret card for LOCAL_BRAIN_KEY. Finish with the model name, speed and address.
The bot copies the key to your clipboard and shows a Secrets card for LOCAL_BRAIN_KEY. Click the field, paste the key and select Submit. On Mac, use Cmd+V.
The card says “Stored securely, never shown to your Bot” and collapses after submission.

Check the three connection tests. A request with the key should return an answer. Requests without it should return 401, and ../key.txt should be rejected.
Our test round trip took 11 seconds.

Continue once all three tests pass. If the link accepts a request without the key, ask the bot to stop the tunnel and fix authentication first.
Blur the tunnel address in screenshots you post.
Step 3: Set the routing rules
Tell your bot which tasks to send to Ollama. The skill from Step 2 also worked in our other bots.
Send long reading tasks to my local model using ask-local-brain. For files in my Desktop "Local Brain" folder, use inbox mode and pass the filename without opening the file yourself. For long files or pages you download, send them through a script without reading their contents into your own context. Convert PDFs to text first. Handle typed or pasted messages, short rewrites, replies, web and X searches, live data, apps, browser tasks, routines and anything involving money or sending messages yourself. Return the local answer as received. If the request fails or my computer is unavailable, say "local is down" and ask before processing the file yourself. When I send "New URL: ...", update the address in the skill. End each reply with [local] or [grok] to show which model produced it.

Ask for a short rewrite. It should stay in Grok Bot and return with [grok]. An inbox request should return with [local].
The tags help you check routing. Step 5 measures how much Grok Bot usage each route takes.

Step 4: Use the inbox
Drop a file into the Local Brain folder on your Desktop, then ask for it by name.
read inbox interview.txt give me 5 key points
Your computer reads the file and returns the answer. The inbox accepts .txt, .md, .csv and .json files up to 50,000 characters. Convert other formats to text and split longer files first.

On our 40,000-character transcript, all five points matched the source. Each answer took about two minutes on the M1.
Check the response against the file before using it. The local model can miss details.
Step 5: Measure and maintain
Open Settings, then Usage & Billing, and switch the Grok Bot usage card to By Bot.
Use the same file and question for both routes. Record the meter, ask Grok Bot to read the file directly twice, then note the change. Repeat through the inbox and compare.
If the changes are too small to distinguish on the display, run more repetitions. The meter rounds each bot’s number to one decimal place.

Our 40,000-character test file used more Grok Bot usage through the inbox. Submitting the task and collecting the answer required extra turns.
Your computer’s speed, file length and the time spent collecting results can affect the comparison. Run the test before counting on a saving.
If the connection breaks, check these two common causes.
What happens | Possible cause | Fix |
|---|---|---|
The bot says “local is down” | Your computer is asleep or offline, or the tunnel address changed | Wake the computer, open |
Requests return 401 | The saved key may have disappeared after an app reconnect | Ask the bot to copy the key again without displaying it, then paste it into the Secrets card |
Use cases
Once the inbox works, try these three tasks.
Use case #1: Pull quotes from a transcript
Find quotes in an interview or podcast transcript.
read inbox interview.txt give me the 5 best quotes, word for word, with who said each one
All five quotes in our test matched the transcript word for word. Search your file for each quote before posting.

Use case #2: List deadlines in a contract
Ask the local model to extract dates and their clauses.
read inbox contract.txt list every deadline with its date and the clause it comes from
For a table, follow up with “Show the same deadlines in a short table with the date, clause and what’s due.”
Our model found seven of eight deadlines. It missed the 14-day cancellation notice, so check each clause before adding dates to your calendar.

Use case #3: Chat through a relay bot
Create a separate bot that forwards your messages to Ollama.
Forward every message I send to ask-local-brain and return its answer word for word. If the request fails, reply "Local model error:" followed by the error. Never answer a question yourself. Never send, post, buy, delete or change anything.
Ask a question and check the response. It should come back from the local model without an introduction from Grok Bot.
Forwarding still uses Grok Bot, so include this bot in your usage comparison.

Limitations
[VISUAL B: the four things to check before you rely on the local brain]
The reported 60% reduction comes from 0xCodila. Our inbox test used more Grok Bot usage, so measure your own results before moving recurring tasks over.
Your computer must stay awake and online. Cloudflare quick tunnels are intended for testing and development, with no uptime guarantee, and the address changes when the tunnel restarts.
Protect the secret key and keep execution set to Ask every time. Files in your inbox are processed locally, but the answers return to Grok Bot and can include quotes or sensitive details from the source.
On our M1, the model ran at 7.6 tokens per second, took about two minutes per long-file task and missed one of eight contract deadlines. Check its answers before using them.
The original guide was checked on November 23, 2026. Grok Bot settings, usage limits and Cloudflare tunnel behavior may change.
Closing
Start with one file and one question. Check the answer against the source and confirm the routing tag.
Then compare usage in Step 5. Keep the local route for tasks where the results and usage justify it, and use Grok Bot for search, tools and actions you approve.
See you in the next one :)
