Tencent COS Setup Guide
Step-by-step setup for Tencent Cloud Object Storage (COS) and ShrimpSend.
In the Tencent Cloud console, search 「对象存储」 (Object Storage)—that product is COS.
When to use Tencent COS
- Users or infrastructure are primarily in mainland China.
- You want payloads stored on Tencent Cloud.
Prerequisites
- Sign in to the Tencent Cloud console.
- Search for Object Storage and enable COS.
Create a bucket
- Object Storage → Bucket List → Create Bucket.
- Choose a globally unique bucket name (cannot be changed later).
- Select a region (see next section—it drives Endpoint and Region).
- Set Access permission to Private read/write (recommended; access via keys and presigned URLs).

Region, Endpoint, and Region field
The bucket region determines the segment in the S3-compatible Endpoint and must match ShrimpSend’s Region field.
Example for Guangzhou:
- Endpoint:
https://cos.ap-guangzhou.myqcloud.com - Region:
ap-guangzhou
The code between cos. and .myqcloud.com (e.g. ap-guangzhou) is the region identifier; it differs per city/zone.

| Console region | Endpoint example | ShrimpSend Region |
|---|---|---|
| Guangzhou | https://cos.ap-guangzhou.myqcloud.com | ap-guangzhou |
| Shanghai | https://cos.ap-shanghai.myqcloud.com | ap-shanghai |
| Beijing | https://cos.ap-beijing.myqcloud.com | ap-beijing |
Use the full bucket name for Bucket (often includes APPID suffix, e.g. my-bucket-1314690352).
Create API keys
Create keys at API Key Management:
- Open https://console.cloud.tencent.com/cam/capi.
- Create a key pair; you receive SecretId and SecretKey.
- Mapping to ShrimpSend:
- SecretId → Access Key ID
- SecretKey → Secret Access Key

Prefer a sub-account key scoped to one bucket; avoid root account keys.
Configure CORS
Bucket → Security → Cross-origin CORS → Add rule. Follow the screenshot:

- Origin:
https://xiachuan.net(+https://www.xiachuan.netif needed) - Methods: PUT, GET, POST, DELETE, HEAD
- Allow-Headers:
* - Expose-Headers:
ETag(optionallyContent-Length,x-cos-request-id)
ShrimpSend settings
| Field | Example |
|---|---|
| Endpoint | https://cos.ap-guangzhou.myqcloud.com |
| Region | ap-guangzhou |
| Bucket | full name with APPID |
| Path-style | Off |
| Access Key ID | SecretId |
| Secret Access Key | SecretKey |

Test & FAQ
Use Test connection, then verify cross-network upload. Region must match the Endpoint region code (e.g. ap-guangzhou), not the Chinese city name.