Trio is an open source automated insulin delivery (OS-AID) system for iOS based on the OpenAPS algorithm, with adaptations for Trio.
Trio builds on years of work from the #WeAreNotWaiting diabetes community. Trio emerged from that broader body of work and is now developed as its own independent open-source project with the backing and support of the Nightscout Foundation. Since then, it has seen substantial contributions from many developers, resulting in a wide range of new features and enhancements.
Its roots trace back to Ivan Valkou’s FreeAPS X, an iPhone implementation of the OpenAPS algorithm, as well as subsequent community development (later known as iAPS), the LoopKit set of tools for building AID systems on iOS, and a broad set of open source pump and CGM drivers developed by the wider OS-AID contributor community.
Trio is developed in active collaboration with the wider open source AID ecosystem across both iOS and Android. The project is committed not only to building Trio itself, but also to enabling collaboration across communities, platforms, and contributor groups in support of stronger and more accessible OS-AID solutions.
In parallel, Trio contributors are actively involved in collaboration with researchers and healthcare professionals to help push the boundaries of what open source AID can achieve.
Trio continues to evolve through contributions from developers, testers, documentation writers, translators, and community members across the open source diabetes ecosystem.
Trio aims to make open source automated insulin delivery safer and more accessible for people with diabetes who are willing to learn, including those supported by experienced users and healthcare professionals, while continuing to support the experienced users and contributors who help build and improve it.
Today, Trio primarily serves:
- people with diabetes (PwD) who are experienced users and want a highly configurable system they can fine-tune
- PwD who already have good control and want a system that requires less day-to-day intervention
- PwD coming from commercial systems who discover open source AID through community support, advocacy, and social channels
- PwD who are learning Trio with support from experienced users or healthcare professionals
Over time, Trio aims to work safely for any person with diabetes who is willing to learn, while continuing to bring along the experienced users, "super users", and contributors who help shape and improve the project and the OS-AID ecosystem as a whole.
You can either use the Build Script or you can run each command manually.
If you copy, paste, and run the following script in Terminal, it will guide you through downloading and installing Trio. More information about the script can be found here.
/bin/bash -c "$(curl -fsSL \
https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/TrioBuildSelectScript.sh)"
In Terminal, cd to the folder where you want your download to reside, change <branch> in the command below to the branch you want to download (ie. dev), and press return.
git clone --branch=<branch> --recurse-submodules https://github.com/nightscout/Trio.git && cd Trio
Create a ConfigOverride.xcconfig file that contains your Apple Developer ID (something like 123A4BCDE5). This will automate signing of the build targets in Xcode:
Copy the command below, and replace xxxxxxxxxx by your Apple Developer ID before running the command in Terminal.
echo 'DEVELOPER_TEAM = xxxxxxxxxx' > ConfigOverride.xcconfig
Then launch Xcode and build the Trio app:
xed .
Instructions:
- For
mainbranch:
https://github.com/nightscout/Trio/blob/main/fastlane/testflight.md - For
devbranch: https://github.com/nightscout/Trio/blob/dev/fastlane/testflight.md
Instructions in greater detail:
- an open-source system developed by enthusiasts and for use at your own risk
- not CE or FDA approved for therapy.
- Trio documentation
- OpenAPS documentation
- Crowdin is the collaborative platform we are using to manage the translation and localization of the Trio App.
- Loop lokalise is the collaborative platform used to manage the translations and localizations from shared pump managers, CGM managers, and services.
For questions or contributions, please join our Discord server.