● Send the economic news headline
The content introduced from now on is not just a simple AI tool introduction. It is an innovative method to perfectly control a powerful AI agent, which was tied only to the front of a computer, 24 hours a day, anytime, anywhere, even in the bathroom, with just Telegram.
Especially in today’s post, we will cover 1) how to build a perfectly secure personal server via Amazon AWS, 2) the core principle of system connection using ‘Kogak DIR’, and 3) know-how on parallel work processing using ‘Multi-bots’ that others don’t know, without omission.
If you read this post to the end, your work productivity will transcend time and space. Now, let’s start right away.
🚀 Claude Code, Now Liberated via Telegram: The Completion of Nomad Working
1. Why the Combination of ‘Telegram’ and ‘Claude Code’?
Recently, Anthropic’s Claude Code has been a huge topic among developers and office workers. The only downside of this powerful tool, which is capable of coding and even computer control, was that it could ‘only be used in front of a computer’.
However, the game is changing now. It is a method of using a Telegram bot as the interface (body) and utilizing Claude Code installed on a cloud server as the brain.
Why is this revolutionary?Because it’s not just chatting; you can command the computer in your house (or server) from outside via smartphone, saying “Analyze this website and organize it in Excel” or “Write this code and deploy it,” and it will take care of it and even send the result as a file. True nomad working becomes possible.
2. [Preparation Stage] Making My Own Safe AI Fortress (AWS & Telegram)
To build this system, exactly three things are required. The brain (Claude Code), the body (Telegram bot), and the neural network (Kogak DIR).
① Building a home for the brain, AWS Cloud ServerKeeping my PC on for 24 hours is inefficient. Use Amazon Web Service (AWS) virtual computer (EC2).
- OS Setting: Select Ubuntu.
- Security Key Pair: Create a key pair with a name like ‘Secret’ and keep it in a safe place on your computer (e.g., credential folder). Without this key, no one can enter the server.
- Storage: Set it generously to about 32GB.
② Tin robot production, Telegram BotFatherSearch for @BotFather on Telegram.
- Enter the
/newbotcommand and set the bot’s name and ID. - Then, it gives a complex ‘API Token’ made of numbers and letters; this is the incantation that breathes a soul into the robot. You must never show it to others.
3. [Core Technology] Neural Network Connection: Kogak DIR Installation and Operation
Now it’s time to connect the prepared server (brain) and Telegram (body). Here, the middleware called Kogak DIR developed by ‘Code Carving Old Man’ plays a key role.
Installation Process Summary:
- Open Terminal (Mac) or PowerShell (Windows) on your computer.
- Set permissions for the downloaded key pair file (utilizing
chmod 0600command). - Enter the AWS Server IP address and Telegram Bot Token into the prepared script command and execute it.
When this process is over, an authentication URL appears on the terminal. If you log in to your Anthropic account through this link, your Telegram bot acquires the intelligence of Claude Code.
💡 Wait here! Security Check (Important)There was a recent issue where open-source clients illegally hijacked Claude’s authentication tokens, right? However, since this method follows Claude’s official OAuth authentication method as it is, you can use it safely as an automation tool without worrying about your account being banned.
4. Practical Use: Evolution into a General Agent Beyond Coding
When the connection is complete, press /start in Telegram. Now the conversation with AI begins. What can you do?
- Web Data Collection and Analysis: If you say “Access this site and download all image files,” the AI opens a browser via Playwright, scrapes the images, and shoots them to Telegram as a compressed file.
- Image Recognition Coding: What if you take a picture of a roughly hand-drawn UI, send it to Telegram, and say “Write web page code that looks exactly like this”? It immediately writes the code and gives it as a file.
- Server Control: Linux commands are also executable in the Telegram chat window. Just add an exclamation mark like
!ls(check file list) or!reboot(restart).
5. [Advanced Tip] Doubling Productivity with Multi-Bot System
The most critical core point that most news or tutorials do not cover is ‘parallel processing’.
Usually, one bot processes only one task at a time. You can’t ask other questions while it’s coding. However, touching the Kogak DIR settings a little solves this.
- Go to BotFather and create one more bot (Create Bot 2).
- Copy the token input line in the installation command script and add a
Token 2item. - By doing this, you can order Bot 1 “Make a homepage” and Bot 2 “Write a market research report.”
This is true multitasking, a method to command AI as a legion of secretaries.
6. Safety Device: Controlling Runaway AI
Since AI agents have autonomy, they might do something erratic (?) occasionally. Permission management to control this is also essential.
/allowed_tools: Checks the tools the AI can currently use (file writing, terminal execution, etc.).- Revoking Permissions: If you are anxious about the AI touching system files, you can take away terminal usage rights with the
/disallow bashcommand. You can give it back only when needed.
< Summary >
- Liberation from Spatial Constraints: Can instruct Claude Code (AI) for coding and computer tasks anytime, anywhere via smartphone by linking AWS server and Telegram.
- Strong Security: Safe without concerns of account theft or hacking by using Key Pair method server access and official OAuth authentication.
- Versatility: Capable of performing almost all tasks done on a PC, such as file download, web scraping, image recognition, and Linux system control, beyond simple conversation.
- Multi-tasking: Possible to build a ‘multi-agent’ system that processes various tasks in parallel simultaneously by creating multiple bots.
[Related Articles…]
Claude Code Installation and Usage MethodTelegram Bot Creation Guide
*Source: 코드깎는노인



Leave a Reply