Syntra is a Swift-based backend server and framework for building intelligent AI agents and conversational systems. It provides a Vapor web server with LLM integration, tool execution, context management, and multi-provider support.
- Vapor-based REST API for chat completions and agent workflows
- Modular architecture with pluggable LLM providers
- Built-in tool registry and execution engine
- Context management and token optimization
- Swift Package Manager integration for reusable components
- Support for macOS and server deployments
Syntra follows a layered design:
- Core: Vapor routes and middleware for API endpoints
- Providers: LLM integrations (OpenAI, Anthropic, Grok, etc.)
- Tools: Extensible tool system for agent capabilities
- Shared: Common models, utilities, and services across packages
- Documentation: Architecture guides and technical specifications
- Ensure Swift 6.0+ and Vapor are installed.
- From the project root:
swift run
- The server will start on
http://127.0.0.1:8081/v1.
Use the /v1/chat/completions endpoint for LLM interactions or integrate with frontend clients such as Open Web UI.
Sources/: Main Swift source packagesPackages/: Reusable SwiftPM packagesSyntraVaporServer/: The primary Vapor applicationDocumentation/: Architecture and usage guidestools/: Supporting scripts and utilities
See syntra_architecture_flow.md and Syntra_Technical_Summary.md for detailed specifications.
See LICENSE file for details.