deploy

Automate OkBrain deployment to a Debian server with PM2 and Caddy.

21|4|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/arunoda/OkBrain --skill deploy-arunoda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy
Source: https://github.com/arunoda/OkBrain/tree/main/.agent/skills/deploy
Command: npx skills add https://github.com/arunoda/OkBrain --skill deploy-arunoda

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the complex process of deploying the OkBrain application to a remote Debian-based server, ensuring a smooth and secure setup.

Core Features & Use Cases

  • Server Provisioning: Handles initial server setup including Node.js, PM2, Caddy, and Ollama.
  • Automated Deployment: Manages cloning the repository, installing dependencies, building the app, and restarting services.
  • Security Hardening: Implements SSH hardening, Fail2Ban, and UFW firewall configuration.
  • Use Case: You need to deploy your OkBrain application to a new VPS. This Skill will guide you through the entire process, from initial server configuration to deploying the latest code updates.

Quick Start

Run the deploy-now script to deploy the latest main branch to your configured server.

Frequently Asked Questions about deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Nextjs application to a Debian server?

To deploy a Nextjs application to a Debian server, you need to handle server provisioning, code cloning, dependency installation, and service management. This process configures PM2 and Caddy to serve the application while applying security hardening like UFW and Fail2Ban.

What's the best way to set up Ollama for AI model serving on Debian?

Setting up Ollama for AI model serving on Debian involves installing the runtime and configuring the server environment. The deployment process includes Ollama installation alongside Node.js and Caddy, ensuring the Debian server is ready to handle AI model requests.

Can I use PM2 and Caddy together to manage and reverse proxy my application?

Yes, you can use PM2 and Caddy together to manage and reverse proxy applications on a Debian server. PM2 handles process management and automatic restarts, while Caddy manages incoming web traffic and routing to the application.

How do I automate server setup with SSH hardening and a UFW firewall?

Automating server setup with SSH hardening and a UFW firewall involves scripting configuration changes during initial provisioning. The deployment process implements Fail2Ban, configures UFW rules, and secures SSH access to protect the Debian server.

Does this deployment process handle building the app and restarting services automatically?

Yes, the deployment process handles building the application and restarting services automatically. It clones the latest repository branch, installs dependencies, builds the app, and uses PM2 to restart the services without manual intervention.

What are the limitations of using a script to deploy code updates to a VPS?

A limitation of using a script to deploy code updates to a VPS is its environment specificity, targeting Debian-based servers with specific tools like PM2 and Caddy. It requires a properly configured remote server and relies on the main branch for updates.