Zero-Cost Deployment (Railway)
Following the first two articles in the "No VPS?" series, I have tried some other container clouds. Coinciding with the addition of S3 bucket support to the CLIProxyAPI program, this article will introduce a new combination: using the Railway container service and deploying with a ClawCloud S3 bucket.
Before you start, please make sure you have accounts for ClawCloud and Railway.
1. Create a ClawCloud bucket
After logging in to ClawCloud, click to enter Object Storage

Next, click Create bucket

Enter a custom bucket name (the name must be in lowercase), and then click Create in the upper right corner

At this point, the bucket has been created. Next, we need to record the following 4 key parameters: the full name of the bucket (shown in the red box in the figure), Access Key, Secret Key, and External address


These 4 parameters will be used to set environment variables respectively. In addition, we also need to set an additional MANAGEMENT_PASSWORD (the password for logging in to the WebUI). Please organize this information in the following format and save it properly:
OBJECTSTORE_ENDPOINT=External value
OBJECTSTORE_ACCESS_KEY=Access Key value
OBJECTSTORE_SECRET_KEY=Secret Key value
OBJECTSTORE_BUCKET=Full bucket name
MANAGEMENT_PASSWORD=Password to access WebUI2. Manual deployment on Railway
In the Railway project dashboard, click Create, and select Docker image

Enter eceasy/cli-proxy-api:latest and press Enter. After a while, a new container will appear in the workspace

Click this newly created container, and select Variables -> Raw Editor in the right panel

Paste the environment variables we prepared earlier, and then click Update Variables

Click the Deploy button to start deployment

After waiting for the deployment to complete (the "Deployment successful" prompt appears), click to enter the Settings tab

In the Public Networking section, click Generate Domain

Set the port number to 8317, and then click Generate Domain

At this time, Railway will generate a public access address for you. You can access the WebUI interface of CLIProxyAPI through this address. If you can open the web page, the deployment is successful.

3. Railway template deployment
In addition, Railway also supports one-click deployment through templates. You can directly click the button below to start (note: this link contains AFF)
If you use template deployment, please note that you need to confirm whether the service port is 8317 after the deployment is complete. If not, you need to modify it manually. The specific modification steps are as follows:



So far, all deployment processes have been completed. For subsequent usage, you can refer to the "Use EasyCLI for remote OAuth authentication" section in the "Zero-Cost Deployment (ClawCloud)" tutorial.
Additional note: In addition to ClawCloud, any object storage service compatible with the S3 API (such as Cloudflare R2) can theoretically be used as an alternative.