Installation
Add the TrustyGorilla SDK to your project.
Install the TrustyGorilla SDK and the OpenFeature SDK for your language. Both are required — TrustyGorilla is an OpenFeature provider.
npm install @trustygorilla/js-sdk @openfeature/server-sdkRequires Node.js 18 or later. @openfeature/server-sdk is a peer dependency.
pip install trustygorilla-sdk openfeature-sdkRequires Python 3.9 or later.
go get github.com/trustygorilla/go-sdk
go get github.com/open-feature/go-sdkRequires Go 1.21 or later.
<dependency>
<groupId>com.trustygorilla</groupId>
<artifactId>tg-java-sdk</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>dev.openfeature</groupId>
<artifactId>sdk</artifactId>
<version>1.12.1</version>
</dependency>Requires Java 11 or later.
// build.gradle.kts
dependencies {
implementation("com.trustygorilla:trustygorilla-kotlin-sdk:1.0.0")
implementation("dev.openfeature:sdk:1.12.1")
}Requires JDK 11 or later.
dotnet add package TrustyGorilla.SDK
dotnet add package OpenFeatureTargets .NET 6.0 or later.
composer require trustygorilla/sdkRequires PHP 8.1 or later.
gem install trustygorilla_sdk openfeature-sdkOr add to your Gemfile:
gem "trustygorilla_sdk"
gem "openfeature-sdk"Requires Ruby 3.0 or later.
Add the package in Package.swift:
dependencies: [
.package(url: "https://github.com/trustygorilla/trustygorilla-swift-sdk", from: "1.0.0")
]Or in Xcode: File → Add Package Dependencies and paste the repository URL. Requires macOS 12 / iOS 15 or later.
Get your API key
Every SDK authenticates with an environment API key (a JWT). Create one in the TrustyGorilla dashboard under Settings → API Keys, scoped to the environment you want to read flags from.
Keep the key in an environment variable — never commit it to source control:
export TG_API_KEY="eyJ..."Next: the Quickstart walks through evaluating your first flag.