Console SDK
Official TypeScript/JavaScript SDK for Cognipeer Console. Provides type-safe access to chat completions, embeddings, vector operations, file management, agent tracing, and guardrails.
What's in the box
Application teams integrating with a Cognipeer Console deployment for chat, embeddings, vector, files, tracing, and guardrails. Each capability is opt-in — use the parts that fit, leave the rest.
Chat Completions
OpenAI-compatible chat API with streaming support for real-time responses.
Embeddings
Text vectorization for semantic search and RAG pipelines.
Vector Operations
Manage vector databases (Pinecone, Chroma, Qdrant, etc.) through a unified API.
File Management
Upload and manage files with optional markdown conversion for RAG ingestion.
Agent Tracing
Observability for agent executions with structured session data.
Guardrails
Evaluate content against tenant guardrail policies.
Type-Safe
Full TypeScript support with comprehensive types and ESM + CJS compatibility.
How it runs
A typed TypeScript client that wraps the Console API surface — chat, embeddings, vectors, files, tracing, and guardrails — with full streaming support.
Modules
chat.completionsembeddingsvectorsfiles
Operational
tracingguardrails- Streaming
- Typed errors
Compatibility
- Node + Bun + Deno
- ESM + CJS
- OpenAI-compatible
- Console gateway
Quickstart
Install, configure, run. The example below is the smallest piece of code that does something useful in production.
How it compares
Against the around console options teams most often weigh — focused on operational concerns, not feature inventories.
| Capability | Console SDK | OpenAI Node SDK | LangChain JS |
|---|---|---|---|
| Chat API | ● native | ● native | ● native |
| Embeddings | ● native | ● native | ● native |
| Vector Ops | ● native | ○ missing | ◐ partial |
| File Mgmt | ● native | ● native | ○ missing |
| Tracing | ● native | ○ missing | ◐ partial |
| Guardrails | ● native | ○ missing | ○ missing |
Patterns that use Console SDK
Production-tested recipes powered by this package.
Quota-Aware LLM Gateway
Run application traffic through Console with project-scoped quotas, model routing, and request-level visibility for cost control.
Vector RAG Operations Control Plane
Operate RAG pipelines through Console by combining file ingestion, vector index management, embeddings, and chat retrieval in one control surface.
PromptOps And MCP Tool Gateway
Use Console as the control plane for prompt versioning, secure config storage, and converting OpenAPI specs into MCP and tool endpoints.