@unyrai/connector
v0.1.1
Published
Unyrai local Ollama connector daemon for hosted SaaS BYOLLM agents.
Downloads
229
Readme
@unyrai/connector
Local Ollama connector for Unyrai hosted SaaS agents (model_source: local).
Requirements
- Node.js 18+
- Ollama running on the same machine (default
http://127.0.0.1:11434)
First run (pairing)
Generate a pairing code in Dashboard → Agent → Local runtime setup → Step 2, then:
npx @unyrai/connector@latest daemon \
--agent-id <agent-uuid> \
--app-url https://unyrai.com \
--pairing-code <code-from-dashboard> \
--local-endpoint http://127.0.0.1:11434Credentials are saved to ~/.unyrai/connector-<agentId>.json.
Restart (already paired)
npx @unyrai/connector@latest daemon \
--agent-id <agent-uuid> \
--app-url https://unyrai.com \
--local-endpoint http://127.0.0.1:11434Keep the process running. Heartbeats default every 15 seconds.
Help
npx @unyrai/connector@latest daemon --helpEnvironment variables
| Variable | Purpose |
|----------|---------|
| UNYRAI_AGENT_ID | Agent UUID |
| UNYRAI_APP_URL | e.g. https://unyrai.com |
| UNYRAI_PAIRING_CODE | First-time pairing |
| UNYRAI_CONNECTOR_TOKEN | Optional token instead of pairing |
| LOCAL_LLM_URL / OLLAMA_URL | Ollama base URL |
