๐ ๏ธ Setup guide: how I set it up
I did this on October 5, 2026, in this order. Anyone can follow it.
1๏ธโฃ Ask for the robot
I asked Claude Code to build a daily crypto video robot. It showed me a plan and 3 choices. I picked these:
- ๐ก Where to get posts: the X API.
- ๐ผ๏ธ How to draw the cards: Remotion.
- ๐ The website: public.
2๏ธโฃ The X API did not work
X did not let me buy credits. My xAI key was blocked too.
I pasted my xAI key into the chat. Do not do that. Anyone who sees a key can use it. Do this: delete the key. Make a new one.
3๏ธโฃ Switch to the free way
The robot logs in to X like a person. It uses 2 login codes from my browser.
Get the codes:
- ๐ In Chrome, go to x.com. Log in.
- ๐ฑ๏ธ Right-click the page. Click Inspect. Click the Application tab.
- ๐ช On the left, click Cookies. Then click https://x.com**.
- ๐ In the Filter box, type
auth_token. Copy the long text in the Value column. - ๐ป In Terminal, run this command:
/bin/bash ~/crypto-l2-daily/scripts/set_x_cookies.sh - ๐ Paste the code. Press Return. Nothing shows on the screen. This is correct.
- ๐ In Chrome, change the filter to
ct0. Copy that Value. Paste it in Terminal. Press Return. - โ Terminal says Saved.
- โ Close the X tab. Do not click Log out. Log out kills the codes.
I pasted a login code in the chat by mistake. I logged out of X to kill it. Then I got fresh codes.
4๏ธโฃ Fix the scraper
X changed its website. This broke the scraper. Claude checked the code of a fixed copy. Then I installed it:
cd ~/crypto-l2-daily && uv pip install --python .venv/bin/python "twikit @ git+https://github.com/unclecode/twikit.git@6a73ab97f4de09f79139f6308c9fb80029a9f5f7"
5๏ธโฃ Make the first video and approve it
- โถ๏ธ Make the video:
/bin/bash ~/crypto-l2-daily/scripts/daily.sh - ๐ Watch it.
- โ
Approve it:
/bin/bash ~/crypto-l2-daily/scripts/approve_sample.sh 2026-10-05
Now it runs by itself every day at 6 PM.
๐ If something breaks
The log is ~/crypto-l2-daily/logs/daily.log.
| ๐ What the log says | ๐ง What to do |
|---|---|
X rejected the session cookies | Do step 3 again with fresh codes. |
Couldn't get KEY_BYTE indices or kept refusing ... (404) | X changed its site again. Ask Claude to find a new scraper fix. |
NOT LIVE | Run the retry command that the log gives you. |
| Nothing for today | The Mac was asleep at 6 PM. Run sudo pmset repeat wakeorpoweron MTWRFSU 17:55:00 one time. Then the Mac wakes at 5:55 PM. |
๐๏ธ Add an old day to the archive
- Run this command:
/bin/bash ~/crypto-l2-daily/scripts/backfill.sh 2026-09-01 - Add 1 line to
config/archive_notes.json. Say why the day matters. Give a real source.