{"id":15160618,"url":"https://github.com/cyberkoalastudios/koalagpt-unity","last_synced_at":"2025-09-30T12:30:27.182Z","repository":{"id":178430164,"uuid":"661849838","full_name":"CyberKoalaStudios/KoalaGPT-Unity","owner":"CyberKoalaStudios","description":"An official Unity package that allows you to use the KoalaGPT API directly in the Unity game engine.","archived":true,"fork":false,"pushed_at":"2024-02-20T19:13:23.000Z","size":99,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-09-28T19:39:23.722Z","etag":null,"topics":["ai","koalagpt","plugin","unity","unity3d-plugin"],"latest_commit_sha":null,"homepage":"https://beta.cyberkoala.ru","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyberKoalaStudios.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":"CyberKoala","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"polar":null,"custom":null}},"created_at":"2023-07-03T19:53:27.000Z","updated_at":"2024-02-22T09:20:29.000Z","dependencies_parsed_at":"2024-02-20T20:29:32.187Z","dependency_job_id":"4db1c9e9-44f9-4a54-8e63-e9b97bcc9ea3","html_url":"https://github.com/CyberKoalaStudios/KoalaGPT-Unity","commit_stats":null,"previous_names":["cyberkoalastudios/koalagpt-unity"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberKoalaStudios%2FKoalaGPT-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberKoalaStudios%2FKoalaGPT-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberKoalaStudios%2FKoalaGPT-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberKoalaStudios%2FKoalaGPT-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyberKoalaStudios","download_url":"https://codeload.github.com/CyberKoalaStudios/KoalaGPT-Unity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234732488,"owners_count":18878416,"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":["ai","koalagpt","plugin","unity","unity3d-plugin"],"created_at":"2024-09-26T23:04:06.642Z","updated_at":"2025-09-30T12:30:21.798Z","avatar_url":"https://github.com/CyberKoalaStudios.png","language":"C#","funding_links":["https://patreon.com/CyberKoala"],"categories":[],"sub_categories":[],"readme":"![YouTube Channel Views](https://img.shields.io/youtube/channel/views/UCUpVfgd42h7pwZwCTcwjp8g)\n![Discord](https://img.shields.io/discord/1016305251936129094)\n\n\n\n---\n\n## KoalaGPT Unity Package\nAn official Unity package that allows you to use the KoalaGPT API directly in the Unity game engine.\n\n![Imgur](https://i.imgur.com/BYOPVby.png)\n\n## How To Use\nSee [[Video](https://www.youtube.com/watch?v=htAeWQ5OaZE)](https://youtu.be/htAeWQ5OaZE)\n\n[![](http://img.youtube.com/vi/htAeWQ5OaZE/0.jpg)](http://www.youtube.com/watch?v=htAeWQ5OaZE \"KoalaGPT API Quick Start Tutorial\")\n\n### Importing the Package\nTo import the package, follow these steps:\n- Open Unity 2019 or later\n- Go to `Window \u003e Package Manager`\n- Click the `+` button and select `Add package from git URL`\n- Paste the repository URL https://github.com/CyberKoalaStudios/KoalaGPT-Unity.git and click `Add`\n\n### Setting Up Your CyberKoala Account\nTo use the KoalaGPT API, you need to have an CyberKoala account. Follow these steps to create an account and generate an API key:\n\n- Go to https://beta.cyberkoala.ru/ and sign up for an account\n- Once you have created an account, go to https://beta.cyberkoala.ru/main/dashboard\n- Buy a new secret key and save it\n\n### Saving Your Credentials\nTo make requests to the KoalaGPT API, you need to use your API key and organization name (if applicable). To avoid exposing your API key in your Unity project, you can save it in your device's local storage.\n\nTo do this, follow these steps:\n\n- Create a folder called .cyberkoala in your home directory (e.g. `C:Users\\UserName\\` for Windows or `~\\` for Linux or Mac)\n- Create a file called `auth.json` in the `.cyberkoala` folder\n- Add an api_key field and a organization field (if applicable) to the auth.json file and save it\n- Here is an example of what your auth.json file should look like:\n\n```json\n{\n    \"api_key\": \"ko-...er\",\n    \"organization\": \"org-...MOW\"\n}\n```\n\n**IMPORTANT:** Your API key is a secret.\nDo not share it with others or expose it in any client-side code (e.g. browsers, apps).\nIf you are using KoalaGPT for production, make sure to run it on the server side, where your API key can be securely loaded from an environment variable or key management service.\n\n### Making Requests to KoalaGPT\nYou can use the `KoalaGPTApi` class to make async requests to the KoalaGPT API.\n\nAll methods are asynchronous and can be accessed directly from an instance of the `KoalaGPTApi` class.\n\nHere is an example of how to make a request:\n\n```csharp\nprivate async void SendRequest()\n{\n    var _koalaGptApi = new KoalaGPTApi();\n    \n    var _messages = new List\u003cPart\u003e();\n    var message = new Part();\n    message.Role = \"user\";\n    message.Content = prompt;\n    \n    _messages.Add(message);\n        \n    var request = new CreateChatCompletionRequestPrompt{\n        Model=\"gpt4\",\n        Prompt=\"Hello!\",\n    };\n    var response = await _koalaGptApi.CreateChatCompletionSimplePrompt(request);\n}\n```\n\n### Making Voice Request.\nVoices available: `jane, filipp, omazh, madirus`\n```csharp\nprivate async void SpeakKoalaGPT()\n        {\n            List\u003cPart\u003e _messages;\n            \n            var message = new Part();\n            message.Role = \"user\";\n            message.Content = \"Hi! Help me to pick right wand\";\n\n            _messages.Add(message);\n\n            var request = new CreateAudioCompletionRequest();\n            request.Messages = _messages;\n            request.Model = \"gpt4\";\n            request.Voice = \"jane\";\n            \n            var response = await _koalaGptApi.CreateSpeechPrompt(request);\n            \n            if (response != null)\n            {\n                var audioClip = response;\n                Debug.Log(audioClip.length);\n\n                _audioSource.clip = audioClip;\n                _audioSource.Play();\n            }\n        }\n```\n\n### Sample Projects\nThis package includes two sample scenes that you can import via the Package Manager:\n\n- **KoalaGPT sample:** A simple KoalaGPT like chat example.\n\n### Supported Unity Versions for WebGL Builds\nThe following table shows the supported Unity versions for WebGL builds:\n\n| Unity Version | Supported |\n| --- | --- |\n| 2022.2.8f1 | ✅ |\n| 2021.3.5f1 | ⛔ |\n| 2020.3.0f1 | ✅ |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberkoalastudios%2Fkoalagpt-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberkoalastudios%2Fkoalagpt-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberkoalastudios%2Fkoalagpt-unity/lists"}