{"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":"2026-10-08T07:19:12","modified_gmt":"2026-10-08T07:19:12","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":"How to install 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 <a data-click-id=\"hgr-post-content-link-integrate-claude\" href=\"https:\/\/www.hostinger.com\/support\/11970152-how-to-use-the-claude-code-vps-template\/\">integrate Claude<\/a> into your development workflow. This tutorial shows you how to install Claude Code on your VPS and provides basic usage examples.<\/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=\"VPS terminal showing Claude Code successfully installed and ready to run `claude --help`\" data-media-id=\"1642\"><\/div><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:<\/p>\n<pre><code>echo 'export PATH=\"$HOME\/.local\/bin:$PATH\"' &gt;&gt; ~\/.profile<\/code><\/pre>\n<\/div><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 welcome screen with the dark mode option highlighted in the terminal setup menu\" data-media-id=\"1644\"><\/div><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.\"\r\nclaude \/thread list\r\nclaude \/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\">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 data-click-id=\"hgr-post-content-link-https-docs-anthropic-com-en-docs-claude-code-overview\" class=\"intercom-content-link\" href=\"https:\/\/docs.anthropic.com\/en\/docs\/claude-code\/overview\" target=\"_blank\" 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":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":19933,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/274\/revisions\/19933"}],"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}]}}