> For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt.

# Use Octop on Tencent Cloud

The official buy links below already pre-select the **Octop** image. Open one, sign in to Tencent Cloud, review the spec, and place the order.

| Option                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Best for                          | Pre-selected image                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | -------------------------------------------- |
| [Lighthouse](https://buy.cloud.tencent.com/lighthouse?blueprintType=APP_OS\&blueprintOfficialId=lhbp-nxq7695q\&regionId=1\&zone=ap-guangzhou-6\&bundleId=bundle_rs_mc_med2_01\&loginSet=AUTO_PASSWORD\&goodsNum=0\&from=lh-console)                                                                                                                                                                                                                                   | Trying Octop quickly              | Octop (Tencent Cloud AI assistant) app image |
| [CVM](https://buy.cloud.tencent.com/cvm?tab=custom\&step=1\&devPayMode=monthly\&regionId=1\&zoneId=100007\&instanceType=SA9.64XLARGE1152\&supportConfidentiality=false\&platform=TencentOS\&imageId=img-n3gxkolf\&systemDiskType=CLOUD_HSSD\&systemDiskSize=100\&systemDiskBackupQuota=0\&isBackup=false\&backupDiskType=ALL\&backupDiskCustomizeValue=\&backupQuotaSegment=1\&backupQuota=1\&wanIp=0\&loginSet=BIND_SSH_KEY\&tags=null\&templateCreateMode=createLt) | Custom instance, disk, or network | Octop on TencentOS Server 4                  |

After the instance is ready, follow the steps below for the URL and initial password.

## Sign in to Tencent Cloud

If you are not signed in, the buy page redirects to the Tencent Cloud login page. Sign in with WeChat or email; you then return to the buy page. If you do not have an account yet, click **Sign up** in the top-right corner.


![Tencent Cloud login page](/images/cloud/login-to-tencent-cloud.png "Tencent Cloud login page")

## Lighthouse

Open the [Lighthouse buy link](https://buy.cloud.tencent.com/lighthouse?blueprintType=APP_OS\&blueprintOfficialId=lhbp-nxq7695q\&regionId=1\&zone=ap-guangzhou-6\&bundleId=bundle_rs_mc_med2_01\&loginSet=AUTO_PASSWORD\&goodsNum=0\&from=lh-console). Creation mode stays on **Use an application image**, with **Octop (Tencent Cloud AI assistant)** already selected.


![Lighthouse with the Octop image selected](/images/cloud/lighthouse-octop.png "Lighthouse with the Octop image selected")

Then confirm:


### Region

Guangzhou by default; pick the closest region if you prefer.

### Bundle

Choose a plan based on your needs and current availability, such as the entry-level 2 vCPU / 2 GB plan; upgrade if the load requires it.

### Login

Auto-generated password by default; you can switch to a custom password or SSH key.

### Duration and quantity

Keep quantity at 1.

### Place the order

Accept the agreement and click **Buy now**.

When the instance is ready, open it and go to **Application management**. Copy the URL (including the port) from the **Octop console** and open it in a browser.


![Octop console in Application management](/images/cloud/lighthouse-octop-url.png "Octop console in Application management")

## CVM

Open the [CVM buy link](https://buy.cloud.tencent.com/cvm?tab=custom\&step=1\&devPayMode=monthly\&regionId=1\&zoneId=100007\&instanceType=SA9.64XLARGE1152\&supportConfidentiality=false\&platform=TencentOS\&imageId=img-n3gxkolf\&systemDiskType=CLOUD_HSSD\&systemDiskSize=100\&systemDiskBackupQuota=0\&isBackup=false\&backupDiskType=ALL\&backupDiskCustomizeValue=\&backupQuotaSegment=1\&backupQuota=1\&wanIp=0\&loginSet=BIND_SSH_KEY\&tags=null\&templateCreateMode=createLt). It lands on **Custom configuration** with the Octop image already attached (`Octop on TencentOS Server 4`, image ID `img-n3gxkolf`).


![CVM custom configuration with Guangzhou selected](/images/cloud/cvm-overview.png "CVM custom configuration with Guangzhou selected")


> **WARNING**
> 
> CVM only shows the image dropdown after you pick an **in-stock instance type**. The very large SKU in the URL may be sold out — switch to something available, such as 2 vCPU / 8 GB. Until then the page says “No images available, select an instance type first”.
> 



![Image list stays empty until an instance type is selected](/images/cloud/cvm-pick-instance.png "Image list stays empty until an instance type is selected")

After you pick an instance type, the page shows the pre-selected Octop image. Keep it as:

- Tab: **Public images**
- OS: **TencentOS**
- Version: **Octop on TencentOS Server 4**


![Public image set to Octop on TencentOS Server 4](/images/cloud/cvm-octop.png "Public image set to Octop on TencentOS Server 4")

Click **Next: Configure network and host**. Assign a **public IP**, set VPC, a security group, and a login method, then submit the order.

Octop does not use a fixed web port. The instance writes the port to `~/octop-login.txt` after it starts.


![CVM network and host configuration](/images/cloud/cvm-network.png "CVM network and host configuration")

When the instance is ready, open it in the CVM console, click **Log in**, and choose **Password-free connection (TAT)**. Only a TAT login switches from root to `agentuser` automatically.


### Log in with TAT

Open the instance details and click **Log in**. In the login window, choose **Password-free connection (TAT)**.

![Log in from the instance details page](/images/cloud/cvm-console-login.png "Log in from the instance details page")

### You are agentuser

After the TAT login, the terminal switches from root to `agentuser` automatically. Run the following commands as this user.

![Terminal opens as agentuser](/images/cloud/cvm-agentuser.png "Terminal opens as agentuser")

### Read the login file

Run `cat ~/octop-login.txt`. It contains the URL and initial password, for example:
```text
URL: http://<your-public-IP>:29648
Password: xxxx
```
Use the port in that file (`29648` is only an example).

### Add a security group inbound rule

Add an inbound TCP rule for the port in that URL. Without this rule, **Log in** in the console still works, but a browser cannot open the page from the public internet.

### Open the page

After the rule takes effect, open the URL in a browser.

### Finish the setup wizard

The page starts the **setup wizard**. Paste the initial password from the file, then set your own admin username and password.
