A connector retrieval server that provides function interfaces for LLMs to interact with external services.
Connector is function interface that can be used to interact with external services. It is designed to be used by LLMs as tool.
This server requires PostgreSQL with the pgvector extension to store vector embeddings.
docker run -d \
--name postgres-vector \
-e POSTGRES_USER=your_user \
-e POSTGRES_PASSWORD=your_password \
-e POSTGRES_DB=your_database \
-p 5432:5432 \
pgvector/pgvector:pg17If you prefer to use an existing PostgreSQL instance, follow the instructions in the pgvector docs to install the extension.
The server uses Cohere API to generate embeddings. Get your API key by:
- Sign up at Cohere
- Navigate to API Key section
- Create a new API key
- Pull the latest image:
docker pull ghcr.io/wrtnlabs/connector-hive:latest- Create a
.envfile based on the example:
PROJECT_API_PORT=37001
DATABASE_URL=postgresql://your_user:your_password@host.docker.internal:5432/your_database
COHERE_API_KEY=your_cohere_api_key
API_KEY=your_optional_api_key # Optional: If set, all requests except GET /health must include this key- Run the container:
docker run -d \
--name connector-hive \
--env-file .env \
-p 37001:37001 \
ghcr.io/wrtnlabs/connector-hive:latestWe also provide a TypeScript/JavaScript client SDK:
npm install @wrtnlabs/connector-hive-apiFor SDK usage, please refer to the API documentation.
The server supports basic API key authentication:
- If
API_KEYis set in the environment variables, all requests exceptGET /healthmust include this key in theAuthorizationheader:Authorization: Bearer your_api_key - If
API_KEYis not set, the server operates without authentication.
You can verify the server is running by making a GET request to the health endpoint:
curl http://localhost:37001/health- Clone the repository:
git clone https://github.com/wrtnlabs/connector-hive.git
cd connector-hive- Install dependencies:
npm install- Set up your environment:
cp .env.example .env
# Edit .env with your configuration- Start the development server:
npm run devMIT License
Copyright (c) 2025 Wrtn Technologies