OpenAI Realtime API Relay Server / CLI in Python with dynamic function registration capabilities.
- Natural voice conversations with OpenAI's Realtime API
- Dynamic function registration and execution
- Built-in system command support
- Audio streaming and transcription
- Tool registry integration
- Set up environment variables:
export OPENAI_API_KEY="your-api-key"- Run the CLI:
python cli.py- Start talking! The agent can:
- Execute system commands ("What files are in this directory?")
- Read files ("Show me the contents of README.md")
- List directories ("List all Python files")
- And more through dynamic function registration
cli.py: Main CLI interface with audio handling and event processingsession_manager.py: Manages dynamic session configuration and function executionrelay_server.py: WebSocket relay server for the Realtime APItool_registry.py: Registry for dynamic tool/function registration
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request