{"id":18345751,"url":"https://github.com/hyperf/odin","last_synced_at":"2025-08-28T05:20:38.741Z","repository":{"id":192523727,"uuid":"658469507","full_name":"hyperf/odin","owner":"hyperf","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-24T14:24:37.000Z","size":174,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-25T13:49:02.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"hyperf","custom":"https://hyperf.wiki/#/zh-cn/donate"}},"created_at":"2023-06-25T20:44:50.000Z","updated_at":"2024-10-24T14:23:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"7aae1608-8ff9-44b4-9bad-31523ea8cdf1","html_url":"https://github.com/hyperf/odin","commit_stats":null,"previous_names":["hyperf/odin"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fodin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fodin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fodin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fodin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf","download_url":"https://codeload.github.com/hyperf/odin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223245061,"owners_count":17112572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T21:09:23.121Z","updated_at":"2025-08-28T05:20:38.735Z","avatar_url":"https://github.com/hyperf.png","language":"PHP","readme":"English | [中文](README-CN.md)\n\n# Odin\n\nOdin is a PHP-based LLM application development framework. Its naming is inspired by the chief god Odin from Norse mythology and his two ravens Huginn and Muninn, which represent **thought** and **memory** respectively. Every morning at dawn, they fly to the human world and return in the evening to bring back what they have seen and heard to Odin.\nThis project aims to help developers create more intelligent and flexible applications using LLM technology, providing more possibilities for LLM technology implementation through a series of powerful and easy-to-use features.\n\n## Core Features\n\n- **Multi-Model Support**: Supports various large language models including OpenAI, Azure OpenAI, AWS Bedrock, Doubao, ChatGLM, and more\n- **Unified Interface**: Provides consistent API interface, simplifying integration with different LLM providers\n- **Tool Calling**: Supports Function Calling, allowing models to invoke custom tools and functions\n- **MCP Integration**: Based on [dtyq/php-mcp](https://github.com/dtyq/php-mcp) to implement Model Context Protocol support, easily integrating external tools and services\n- **Memory Management**: Provides flexible memory management system, supporting conversation context persistence\n- **Vector Storage**: Integrates Qdrant vector database, supporting knowledge retrieval and semantic search\n- **Agent Development**: Built-in Agent framework, supporting intelligent agent development\n- **High Performance**: Optimized implementation, supporting streaming responses and efficient processing\n\n## System Requirements\n\n- PHP \u003e= 8.0\n- PHP Extensions: bcmath, curl, mbstring\n- Composer \u003e= 2.0\n- Hyperf Framework (2.2.x, 3.0.x or 3.1.x)\n\n## Installation\n\n```bash\ncomposer require hyperf/odin\n```\n\n## Quick Start\n\n1. After installation, publish the configuration files:\n\n```bash\nphp bin/hyperf.php vendor:publish hyperf/odin\n```\n\n2. Configure your API key in the `.env` file:\n\n```\nOPENAI_API_KEY=your_openai_api_key\n```\n\n3. Set the default model in `config/autoload/odin.php`:\n\n```php\nreturn [\n    'llm' =\u003e [\n        'default' =\u003e 'gpt-4o', // Set your default model\n        // ... other configurations\n    ],\n];\n```\n\n## Documentation\n\nDetailed documentation can be found in the `doc/user-guide` directory:\n- [Installation and Configuration](doc/user-guide/01-installation.md)\n- [Core Concepts](doc/user-guide/02-core-concepts.md)\n- [API Reference](doc/user-guide/03-api-reference.md)\n- [Model Providers](doc/user-guide/04-model-providers.md)\n- [Tool Development](doc/user-guide/05-tool-development.md)\n- [Memory Management](doc/user-guide/06-memory-management.md)\n- [Agent Development](doc/user-guide/07-agent-development.md)\n- [Example Projects](doc/user-guide/09-examples.md)\n- [MCP Integration](doc/user-guide/11-mcp-integration.md)\n- [Frequently Asked Questions](doc/user-guide/10-faq.md)\n\n## License\n\nOdin is open-sourced software licensed under the [MIT license](https://github.com/hyperf/odin/blob/master/LICENSE).","funding_links":["https://opencollective.com/hyperf","https://hyperf.wiki/#/zh-cn/donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fodin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf%2Fodin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fodin/lists"}