Available on all Cloud plans.
Overview
You need to connect a running Blnk Core instance to start using Cloud to work with your financial data. Blnk uses a secure Query Agent that establishes a connection between your instance and Cloud without exposing your database credentials directly. The Query Agent handles all database queries internally while maintaining strict read-only access, providing:- Enhanced security: No need to expose database credentials or configure complex firewall rules.
- Read-only access: Agent only requires SELECT permissions, ensuring data integrity.
- Simplified setup: Eliminates network configuration complexity.
- Reliable connection: Automatic reconnection and health monitoring.
Install Blnk Core
Learn how to install and deploy a Blnk Core instance.
Have trouble installing?
Contact our support team if you need help with deploying a Blnk Core instance.
Prerequisites
Before you begin, ensure you have:- Docker installed and running on your system;
- A running Blnk Core instance in your environment;
- Database credentials with read permissions;
- Your Blnk Core instance URL and secret key.
Not a developer? We recommend doing this with a developer or your engineering team for seamless implementation.
1. Create your instance
First, you need to create an instance connection in your Blnk Cloud workspace. This will generate a secure connection key that the Query Agent will use to establish the connection.1
Navigate to instance creation
- In your Blnk Cloud workspace, go to Settings > Instances;
- Click Connect new instance;
- You’ll see the instance creation form.

2
Provide instance details
Fill in your instance information:
- Instance name: Choose a descriptive name (e.g., “Production”, “Staging”);
- Core URL: Your Blnk Core instance URL (e.g.,
https://api.yourcompany.com
); - Core secret key: Your Blnk Core API secret key.
We use these credentials to perform back-office actions in your Core instance. Without them, your instance will be limited to read-only access.
3
Generate connection key
- Click Create connection to generate your secure connection key;
- Copy the generated connection key — you’ll need this for the Query Agent setup;
- Keep this key secure as it provides access to your instance data.

2. Connect your instance
Now that you have your connection key, deploy the Query Agent to establish the secure connection between your database and Blnk Cloud.1
Launch Docker
First, verify that Docker is installed and running on your system:If Docker isn’t installed:
bash
If Docker is working correctly, you should see version information and a list of running containers (which may be empty).
- macOS/Windows: Download Docker Desktop.
- Linux: Follow the installation guide for your distribution.
2
Prepare your database URL
Create your PostgreSQL connection string using this format:
psql
If you’re running PostgreSQL locally within a docker container, use
host.docker.internal
as the host.3
Run the connection agent
Execute the Docker command with your configuration. Replace the placeholder values with your actual database URL and connection key:
bash
The container name is generated automatically and is unique to your instance.
Verify the agent is running
bash
You should see logs indicating successful database connection and WebSocket connection to Blnk Cloud.
4
Verify connection
Return to your Blnk Cloud workspace:
- Check connection status: Navigate back to Settings > Instances;
- Verify agent status: Your instance should show as “Connected” with a green indicator;
- Test the connection: The system will automatically verify that the Query Agent is communicating properly.

Once the agent connects successfully, your Cloud workspace will be initialized and you can start exploring your financial data in the dashboard.
Troubleshooting
Trouble connecting to your database locally
Trouble connecting to your database locally
If you’re running PostgreSQL inside Docker:
- Use
host.docker.internal
as the host in your database URL; - DB URL:
postgres://postgres:password@host.docker.internal:5432/blnk?sslmode=disable
.
- Use
localhost
as the host in your database URL; - DB URL:
postgres://postgres:password@localhost:5432/blnk?sslmode=disable
.
- Ensure PostgreSQL is running and accessible;
- Check that the port (default: 5432) is correct;
- Verify your database credentials are correct.
Docker container won't start
Docker container won't start
Common solutions:
- Verify Docker is running:
docker --version
; - Check if port conflicts exist:
docker ps
; - Ensure environment variables are properly formatted;
- Review Docker logs:
docker logs blnk-agent-[name] --tail 50
.
Database connection failed
Database connection failed
Check these items:
- Database URL format is correct;
- Database host is accessible from your Docker host;
- Database user has proper read permissions;
- Network connectivity allows database connections;
- SSL mode is correctly configured.
psql
Connection agent shows as disconnected
Connection agent shows as disconnected
Troubleshooting steps:
- Verify the connection key is correct and not expired;
- Check your network allows WebSocket connections to Blnk Cloud;
- Restart the Docker container:
docker restart blnk-agent-[name]
; - Review connection agent logs for specific error messages.
Instance authentication failed
Instance authentication failed
Verify these details:
- Instance URL is accessible and responding;
- Instance secret key is correctly copied;
- SSL certificate is valid if using HTTPS;
- Blnk Core instance is running and accepting connections.
bash
Managing your connection agent
1
Monitor connection health
bash
2
Update the connection agent
bash
3
Stop the connection agent
bash
Next steps
Explore your data
Navigate your workspace and start analyzing your financial data.
Set up compliance monitoring
Configure automated compliance monitoring and anomaly detection.
Manage team access
Invite team members and configure workspace permissions.
Configure notifications
Set up alerts for suspicious activities and threshold breaches.