Prerequisites
- An Appwrite project, on Appwrite Cloud or a server you run.
- Permission to create API keys in the project.
- For a server with a private certificate, the issuing CA certificate in PEM form.
Setup
1
Copy the endpoint and project ID
In the Appwrite console, find the API address of your project, such as
https://cloud.appwrite.io/v1. Open Settings and copy the Project ID.2
Create an API key
In the Appwrite console, create a project API key with the scopes in Required permissions. Copy it now.
3
Add the connection in CloudThinker
Go to Settings → Workspace → Connections. On the Discover tab, select Appwrite. Fill in the fields in Connection details and click Connect.Success state: Appwrite shows Connected on the Connected tab.
Connection details
The certificate and hostname are always checked.
Required permissions
Read-only scopes:health.read, databases.read, functions.read, buckets.read, users.read, teams.read, execution.read, sites.read
Add a write scope only for the changes you want agents to propose:
Agent capabilities
Changes run only after you approve them in Approvals.
Each change reads the target first and refuses an unknown ID. Running a function runs its code and cannot be undone.
Verify the connection
Example prompts
Troubleshooting
Requests return 401
Requests return 401
The API key is wrong or lacks a read scope. Create a key with the read scopes above, then edit the connection and paste it.
Certificate is not trusted
Certificate is not trusted
Your server uses a private or self-signed certificate. Paste the issuing CA certificate into CA certificate (optional).
A function returns 404
A function returns 404
No function has that ID. Ask the agent to list functions and use the ID it shows.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Scopes: leave write scopes off the key if you only want to investigate.
- Run function: running a function can have side effects. Read the function name and body before you approve.
Related
Connections
See how connections work and how to manage them.
Approvals
Control which Appwrite changes wait for a person.