Wednesday, March 18, 2026
HomeMachine LearningI created my own local AI agent with OpenClaw + Obsidian: what...

I created my own local AI agent with OpenClaw + Obsidian: what no one tells you

A Field Report on Setting Up an Ubuntu VM with OpenClaw and Obsidian

Three weeks ago, I made the decision to end my subscriptions to AI services that I barely used. Instead, I opted to delve into building my own personal AI agent hosted on my Ubuntu virtual machine. This journey was filled with debugging, configuration errors, and valuable lessons that I am excited to share with you.

Understanding OpenClaw

OpenClaw is an open-source personal AI agent that runs on your machine, offering persistent memory and the ability to act on your behalf constantly. Unlike cloud-based AI services like ChatGPT or Claude, OpenClaw operates locally, ensuring that all your data stays on your own machine.

The community describes OpenClaw as having an assistant who never sleeps, capable of tasks such as responding to Telegram messages, writing in Obsidian for real-time note-taking, and storing memories in Markdown files.

My Configuration Setup

For my setup, I utilized a Windows laptop with an Ubuntu VM, connected through TailScale for networking. Docker was used for containerization, and I integrated the Alibaba Qwen3-Max AI model with Telegram for chat interactions and Obsidian for memory storage.

Key Integration Steps

During the integration process, it’s crucial to follow specific steps to avoid common errors. For instance, running the ./docker-setup.sh script with sudo can lead to permission issues. Instead, it’s recommended to add your user to the Docker group before proceeding.

Challenges to Overcome

Throughout the setup, you may encounter several common errors such as permission denied on certain files, gateway crash loops, agent file writing issues, and configuration errors related to API keys. Each of these challenges requires specific solutions to ensure the smooth operation of your AI agent.

Enhancing Security with Obsidian

Obsidian plays a crucial role in OpenClaw’s setup, serving as the repository for persistent memory. By structuring your safe within Obsidian, you can ensure that your AI agent has access to the necessary files while maintaining security measures to prevent unauthorized actions.

Lessons Learned: Prioritizing Security

One of the most important takeaways from this experience is the significance of configuring guardrails to prevent unauthorized actions by the AI agent. By setting strict rules and gradually extending authorizations, you can safeguard your data and prevent any unintended consequences.

Reflecting on the Journey

Looking back, there are several things I would have done differently, such as configuring Docker first, not skipping essential skills during onboarding, and ensuring strict guardrails before granting permissions to the agent. These insights can help streamline the setup process and prevent common pitfalls.

Conclusion

Building your own local AI agent with OpenClaw and Obsidian is a rewarding but challenging experience. By following best practices, addressing common errors, and focusing on security, you can create a powerful assistant that works seamlessly on your machine.

If you’re embarking on a similar setup, feel free to share your progress and any challenges you encounter in the comments below. I’m here to help troubleshoot and offer guidance along the way.

Published via Here

Must Read
Related News

LEAVE A REPLY

Please enter your comment!
Please enter your name here