How I Set Up My OpenClaw as a Professional Developer (Insanely Powerful)
This YouTube insight note was created with LilysAI. Sign up free and get 10× faster, deeper insights from videos.
Q: How does a professional developer set up and use OpenClaw?
Q: What specific security measures are taken, and what other tasks can it perform?
How does a professional developer set up OpenClaw? Prioritize security and cost-efficiency by using a secure VPS setup, a separate user account, and a hybrid model strategy with cheaper Codex models for most tasks.
1. OpenClaw Setup and Security
The speaker's OpenClaw setup prioritizes security and controlled access to prevent vulnerabilities.1.1. Secure Server Configuration
- Virtual Private Server (VPS) with Tailscale
- The setup uses a Virtual Private Server (VPS), which is a private server that only allows traffic from authorized computers or IP addresses .
- Tailscale, a virtual private network (VPN), is used to ensure only authorized traffic can access the VPS .
- Firewall and Localhost Restriction
- A firewall is added to the server, and OpenClaw is configured to run only on localhost, meaning it is not exposed to any external traffic .
- This prevents the OpenClaw instance from being accessible via the server's public IP address, which is a major security risk .
- As a result, the setup is invisible to scans, cannot be pinged, and blocks all unauthorized SSH attempts .
- Non-Root User Account
- OpenClaw is set up under a separate, non-root user account (e.g., "TIM user") with its own password .
- This limits OpenClaw's permissions, preventing it from executing critical system commands or altering security settings like the firewall .
1.2. Telegram Integration for Interface
- Primary Interface via Telegram
- The main way to interact with the OpenClaw agent is through Telegram .
- No other chat integrations are connected to the bot .
- Enhanced Security with Telegram
- Telegram is considered safer than other apps like WhatsApp because it does not link to the user's primary identity or phone number, which could be used for two-factor authentication codes .
- The speaker does not use Telegram for other purposes, so even if it were compromised, the impact would be minimal compared to a primary communication app .
2. Model Selection and Cost Optimization
The speaker uses a hybrid model strategy for OpenClaw, combining a cost-effective Codex model for most tasks with a more powerful Opus model for complex operations, significantly reducing costs compared to API usage.2.1. Cost Issues with Frontier Models
- High Cost of Frontier Models
- Running OpenClaw with a Frontier model (like Opus 4.5) can be extremely expensive, potentially leading to thousands of dollars in monthly costs without optimization .
- For example, connecting to Opus 4.5 for just a few minutes resulted in several dollars spent, indicating a very high burn rate .
2.2. Hybrid Model Strategy for Cost-Efficiency
- Primary Use of Codex Model
- A more cost-effective approach is to connect OpenClaw to a Codex model, which is 99% cheaper .
- This is done by using an existing subscription (e.g., ChatGPT Pro at $200/month) that offers practically unlimited usage of the Codex model, rather than relying on more expensive API keys .
- The Codex model is highly capable for coding and development tasks, and while not as powerful as Opus 4.5 for all tasks, it is sufficient for 99% of needs and still good at reasoning .
- Supplemental Use of Opus Model
- The speaker also connects OpenClaw to a Claude subscription ($20/month) to access Opus models for advanced planning when needed .
- The strategy is to use Opus 4.5 for complex tasks and then revert to Codex for everything else .
- If Opus 4.5 usage limits are reached, OpenClaw automatically switches back to the Codex model .
- Benefits of the Hybrid Approach
- This hybrid setup provides the benefits of Opus's planning and execution capabilities while leveraging Codex for most coding tasks, which is the primary use case .
- This method is significantly cheaper than running everything through direct API calls .
2.3. Ongoing Usage and Optimization
- High Usage with Codex
- Even with constant operation, running sub-agents, and a continuous heartbeat, the speaker's usage of the Codex model remains well within weekly and daily limits .
- This demonstrates the high limits provided by subscriptions like ChatGPT Pro .
- Recommendation for Power Users
- For power users, it is recommended to purchase a subscription like ChatGPT Pro and connect it to the Codex model due to its high usage limits .
- Further Optimizations
- Although the current setup is cost-effective, further optimizations can be made to the tool to reduce credit usage, though these are not detailed in the video .
3. Integrations and Security Measures
The speaker implements strict security measures for OpenClaw's integrations by creating separate, limited accounts and forwarding only trusted information.
3.1. Separate Accounts for Google Services
- Dedicated Email Account
- To prevent security risks, a separate email account is created for OpenClaw's integrations .
- This account is granted full access to Google services like Google Drive, Google Calendar, Sheets, and Gmail, but it is isolated from the speaker's main personal accounts .
- Email Forwarding with Filters
- To allow OpenClaw to access information from main accounts, email forwarding rules are set up .
- Only emails from trusted domains and senders are forwarded from the main accounts to the secondary account that OpenClaw can access .
3.2. Preventing Prompt Injection Attacks
- Controlled Information Flow
- By forwarding only trusted emails, the system prevents prompt injection attacks, where an untrusted sender could send an email with a malicious prompt for OpenClaw to execute .
- Blocked Direct Email Access
- OpenClaw is blocked from reading any content sent directly to its dedicated email address .
- It can only read emails that have been forwarded from another address, further limiting unwanted external information from entering the system .
3.3. API Key Management
- Strict API Key Limits and Notifications
- For all connected APIs, strict API key limits are set, along with notifications .
- Minimizing Damage from Leaks
- These measures ensure that if any data is leaked, the damage is minimal, allowing for quick deactivation or key rotation .
4. OpenClaw Use Cases and Automation
The speaker leverages OpenClaw to automate various tasks, including monitoring its own operations, generating YouTube reports, managing accounting, and tracking tasks.
4.1. OpsHub for Monitoring and Logging
- Custom Dashboard (OpsHub)
- OpenClaw created a custom dashboard called OpsHub to keep track of all its activities in one place .
- Logging and Monitoring
- The initial task for OpenClaw was to set up logging and monitoring to provide observability into its operations .
- This includes a Claudebot monitor that shows real-time sub-agents, errors, tool calls, and prompts .
- Users can view past sessions and logs to understand what OpenClaw was doing .
- Real-time Sub-agent Monitoring
- The system allows users to see sub-agents being spun up in real-time when tasks are assigned .
- Token Usage Tracking
- OpenClaw also created a token usage tracker to monitor token consumption and quotas, eliminating the need to visit external websites .
- While price estimates may not be accurate, the Codex quota tracking functions correctly .
4.2. YouTube Research and Reporting
- Outlier Video Research
- OpenClaw constantly researches YouTube for outlier videos and content from competitors .
- It identifies coding channels similar to the speaker's, providing context and inspiration for new ideas .
- Daily YouTube Reports
- OpenClaw generates daily YouTube reports that search for well-performing videos relative to specific channels .
- These reports include details like views per hour, which are crucial for a YouTuber to generate new content ideas .
- YouTube Operating System
- A YouTube operating system was created to track and star video ideas, pulling information from the daily reports .
4.3. Automated Accounting
- Handling Financial Emails
- OpenClaw automates accounting tasks by reading forwarded emails related to receipts, payments, invoices, and sponsorship deals .
- The speaker spent significant time teaching OpenClaw the accounting process .
- Information Extraction and Logging
- It identifies the type of document (receipt, expense, bank statement, contract) and extracts important information .
- This data is logged into a Google Sheet to track incoming and outgoing money .
- PDF Saving and Invoice Generation
- OpenClaw saves PDFs and can generate invoices .
- A skill called "invoice maker" allows it to generate invoices, upload them to Google Drive, and add them to a tracking sheet .
- It can also automatically attach payments to previous invoices and track them .
- AI Accounting Google Drive
- OpenClaw is connected to an AI accounting Google Drive that organizes reports, payments, invoices, and expenses .
- It provides a line-by-line log of all transactions per month and day .
4.4. Task Management and Automation
- Basic Task Tracker
- A basic task tracker is used to list videos in progress, allowing the bot to update them .
- To-Do Kanban Board
- OpenClaw created a to-do Kanban board to track its ongoing tasks .
- A long list of tasks can be added, and the bot picks them up automatically .
- Every 30 minutes, the heartbeat file spins up multiple sub-agents to work on tasks in parallel and move them to the "done" tab upon completion .
- Activity Log and Continuous Operation
- A full activity log shows everything OpenClaw is doing .
- By building these systems, OpenClaw can perform more tasks, and the speaker aims to maximize token usage due to high limits from the OpenAI Pro plan .
- The tracking sheet allows for continuous operation without constant prompting; tasks are added once, and OpenClaw picks them up automatically .
4.5. GitHub Integration and Skills
- Separate GitHub Account
- A separate GitHub account (Tech with Tim Claudebot) was created for OpenClaw .
- All code written by OpenClaw is automatically stored in this GitHub account within the speaker's organization, ensuring all code is saved and accessible .
- Diverse Skills and Crons
- OpenClaw is connected to various skills, including a PDF reader and image generation .
- It is set up with crons (scheduled tasks) for logging sponsorship contacts, AI accounting triage, YouTube outlier research, and daily self-improvement, including reviewing skills and backlog tasks .
5. Overall Experience and Future Outlook
The speaker finds OpenClaw useful for automating annoying tasks and saving time, despite not being a full power user, and is excited about its future capabilities.
5.1. Current Utility and Security
- Good Results with Moderate Effort
- The speaker has achieved good results with OpenClaw without spending excessive time configuring it .
- Extremely Useful and Secure
- OpenClaw has been extremely useful for automating tasks and is securely set up, which is a crucial aspect .
5.2. Impact and Future Potential
- Not Life-Changing, but Time-Saving
- While not "life-changing," OpenClaw is definitely saving the speaker time .
- Excitement for Continued Use
- The speaker is excited to continue using OpenClaw, have it learn more, and build out its capabilities .
- Automation of Coding Tasks
- OpenClaw is capable of coding well and building automations and scripts, which saves time on tasks that the speaker would normally not want to code manually .
Understand massive materials like a genius — with LilysAI
Over 1,000,000 knowledge seekers use Lilys AI.
