{"id":273,"date":"2025-08-08T14:18:03","date_gmt":"2025-08-08T14:18:03","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/08\/08\/11970152-how-to-use-the-claude-code-vps-template\/"},"modified":"2026-07-23T13:20:19","modified_gmt":"2026-07-23T13:20:19","slug":"11970152-how-to-use-the-claude-code-vps-template","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/11970152-how-to-use-the-claude-code-vps-template\/","title":{"rendered":"How to use the Claude Code VPS template"},"content":{"rendered":"
Claude Code is a command-line interface (CLI) that allows you to interact with Anthropic’s Claude language model directly from your terminal. With it, you can run prompts, manage conversations, and integrate AI into development workflows using simple text commands. The “Ubuntu 24.04 with Claude Code” VPS template comes with Claude Code pre-installed, so you can start using it right away.<\/p>
After deploying the template, you can access Claude Code in two ways:<\/p>
Via SSH<\/b>: Use a terminal on your computer to connect with:<\/p>\n<\/li>\n<\/ul> Via Browser Terminal<\/b>: Open your VPS dashboard in hPanel and launch the browser terminal directly from there.<\/p>\n<\/li>\n<\/ul> Once connected, you can start using Claude Code immediately. To begin, log in to your Claude account by running:<\/p> This will prompt a login URL. Open it in your browser, log in with your Anthropic credentials, and authorize the CLI.<\/p> Here are some useful commands to get started. Open an interactive session:<\/p> Run a one-line prompt:<\/p> View help for all available commands:<\/p> Claude CLI supports persistent threads. You can start and manage them with commands like:<\/p> Create a new thread:<\/p> List all threads:<\/p> Switch to an existing thread:<\/p> The “Ubuntu 24.04 with Claude Code” template gives you everything needed to begin working with Claude from the command line. With the CLI already installed and ready, you can immediately begin creating prompts, building automations, or integrating Claude into your development environment. For advanced features and documentation, visit the official Claude Code page<\/a>.<\/p> \n<\/p>\n","protected":false},"excerpt":{"rendered":" Getting started with Claude Code VPS template<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[206],"tags":[],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-vps-os-and-templates"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/11970152-how-to-use-the-claude-code-vps-template\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":13260,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/273\/revisions\/13260"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}ssh root@[your-vps-ip]<\/code><\/pre>\n
Using Claude Code<\/h2>
claude \/login<\/code><\/pre>Basic commands<\/h2>
claude<\/code><\/pre>claude \"Explain the difference between TCP and UDP.\"<\/code><\/pre>claude \/help<\/code><\/pre>Managing conversations<\/h2>
claude \/thread new \"Weekly planning session\"<\/code><\/pre>claude \/thread list<\/code><\/pre>claude \/thread switch [THREAD_ID]<\/code><\/pre>