{"id":274,"date":"2025-08-04T11:08:14","date_gmt":"2025-08-04T11:08:14","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/08\/04\/11929523-installing-claude-code-on-a-vps-at-hostinger\/"},"modified":"2025-08-27T06:36:24","modified_gmt":"2025-08-27T06:36:24","slug":"11929523-installing-claude-code-on-a-vps-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/11929523-installing-claude-code-on-a-vps-at-hostinger\/","title":{"rendered":"Installing Claude Code on a VPS at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Claude Code is a command-line interface that enables you to interact with Anthropic&rsquo;s Claude model directly from your terminal. It&rsquo;s a lightweight and efficient way to run prompts, manage conversations, and integrate Claude into your development workflow. This tutorial shows you how to install Claude Code on your VPS and provides basic usage examples.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_6726527a93\">Installation<\/h2><p class=\"no-margin\">To install Claude Code, log in to your VPS and run the following command:<\/p><pre><code>curl -fsSL https:\/\/claude.ai\/install.sh | bash<\/code><\/pre><p class=\"no-margin\">This script will download and install the latest version of the Claude CLI tool. After installation, the Claude command will be available globally from your shell.<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/08\/7d52ab39-865f-42f9-83a2-da66be157efb.jpg\" alt=\"Claude Code installation\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">You can verify installation with:<\/p><pre><code>claude --version<\/code><\/pre><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">\n<p class=\"no-margin\">If you have received a &ldquo;Setup notes&rdquo;, you&rsquo;ll also need to add the Claude executable to your bash profile. This can be done by executing:<br>&#8203;<\/p>\n<pre><code>echo 'export PATH=\"$HOME\/.local\/bin:$PATH\"' &gt;&gt; ~\/.profile<\/code><\/pre>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_dd42588de2\"><b>Logging in<\/b><\/h2><p class=\"no-margin\">To use Claude Code, you need to authenticate your session. Run:<\/p><pre><code>claude \/login<\/code><\/pre><p class=\"no-margin\">This command will display a login URL that you will need to copy to your browser. Follow the instructions to connect your account.<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/08\/b9fc9d1d-56a7-47f3-a6ec-9c93c8ceb7ce.jpg\" alt=\"Claude Code login\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_268ae73d9d\"><b>Example commands<\/b><\/h2><p class=\"no-margin\">Once you&rsquo;re logged in, here are some basic usage examples to get started.<\/p><p class=\"no-margin\">Run a prompt interactively:<\/p><pre><code>claude<\/code><\/pre><p class=\"no-margin\">You&rsquo;ll be dropped into a REPL where you can type questions or instructions, and Claude will respond.<\/p><p class=\"no-margin\">Send a one-off prompt from the command line:<\/p><pre><code>claude \"Summarize this week's project updates.\"<\/code><\/pre><p class=\"no-margin\">Create or continue a conversation:<\/p><pre><code>claude \/thread new \"Let's brainstorm product ideas.\"<br>claude \/thread list<br>claude \/thread switch [THREAD_ID]<\/code><\/pre><p class=\"no-margin\">Check all available commands:<\/p><pre><code>claude \/help<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">With Claude Code installed on your VPS, you can access powerful AI tools directly from the terminal. Whether you&rsquo;re drafting content, writing code, or querying structured data, Claude Code offers a fast and scriptable way to integrate AI into your daily workflows. For more advanced usage, visit the official documentation at <a href=\"https:\/\/docs.anthropic.com\/en\/docs\/claude-code\/overview\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">https:\/\/docs.anthropic.com\/en\/docs\/claude-code\/overview<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick-start guide to installing and using Claude\u2019s command-line tool<\/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":[199],"tags":[],"class_list":["post-274","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/11929523-installing-claude-code-on-a-vps-at-hostinger\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/274","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=274"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":1646,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/274\/revisions\/1646"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}