Skip to content

This is an official demonstration of advanced patterns for voice agents, using the CometAPI Realtime API and the OpenAI Agents SDK.

License

Notifications You must be signed in to change notification settings

cometapi-dev/cometapi-realtime-agents

Repository files navigation

CometAPI Realtime Agents Demo

This is an official demonstration of advanced patterns for voice agents, using the CometAPI Realtime API and the OpenAI Agents SDK.

About CometAPI

CometAPI provides enterprise-grade access to cutting-edge AI models with competitive pricing, low latency, and reliable infrastructure. The CometAPI Realtime API is compatible with the OpenAI Realtime API protocol, making it easy to integrate into your applications.

CometAPI Resources

Quick Start

Installation

  1. Clone this repository:

    git clone https://github.com/cometapi-dev/cometapi-realtime-agents.git
    cd cometapi-realtime-agents
  2. Install dependencies:

    npm install
  3. Configure your CometAPI credentials:

    cp .env.sample .env

    Edit .env and add your CometAPI API key (Get one here):

    COMETAPI_KEY=your_cometapi_key_here
  4. Start the development server:

    npm run dev
  5. Open your browser to http://localhost:3000. It should default to the chatSupervisor Agent Config.

Configuration

The following environment variables can be configured in your .env file:

Variable Description Default
COMETAPI_KEY Your CometAPI API key (required) -
COMETAPI_BASE_URL CometAPI REST API base URL https://api.cometapi.com
COMETAPI_REALTIME_URL CometAPI WebSocket URL for realtime wss://api.cometapi.com/v1/realtime
COMETAPI_MODEL Model identifier to use gpt-4o-realtime-preview-2025-06-03
https_proxy or HTTPS_PROXY HTTPS proxy URL (optional) -

About

This is an official demonstration of advanced patterns for voice agents, using the CometAPI Realtime API and the OpenAI Agents SDK.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages