Integrates FeatBit feature flags in Java server applications (Spring Boot, Servlet, JAX-RS). Use when working with .java files, pom.xml, build.gradle, or when user asks about "Java SDK", "Spring Boot integration", "feature flags in Java", "OpenFeature Java", or "FeatBit Java".
View on GitHubfeatbit/featbit-skills
featbit-skills
February 3, 2026
Select agents to install to:
npx add-skill https://github.com/featbit/featbit-skills/blob/main/skills/featbit-java-sdk/SKILL.md -a claude-code --skill featbit-java-sdkInstallation paths:
.claude/skills/featbit-java-sdk/# FeatBit Java Server SDK
Expert guidance for integrating FeatBit Server-Side SDK in Java applications.
📚 **Official Repository**: https://github.com/featbit/featbit-java-sdk
> **For complete documentation and latest updates**, visit the [official GitHub repository](https://github.com/featbit/featbit-java-sdk).
## Overview
⚠️ **Server-Side SDK**: Designed for multi-user systems (web servers, APIs). Not for Android - use Android SDK for mobile.
**Data Synchronization**:
- WebSocket for real-time sync
- In-memory storage (default)
- Changes pushed in <100ms average
- Auto-reconnects after internet outage
## Prerequisites
- **Environment Secret**: [How to get](https://docs.featbit.co/sdk/faq#how-to-get-the-environment-secret)
- **SDK URLs**: [How to get](https://docs.featbit.co/sdk/faq#how-to-get-the-sdk-urls)
## Installation
**Version**: 1.4.5
### Maven
```xml
<dependency>
<groupId>co.featbit</groupId>
<artifactId>featbit-java-sdk</artifactId>
<version>1.4.5</version>
</dependency>
```
### Gradle
```gradle
implementation 'co.featbit:featbit-java-sdk:1.4.5'
```
## Quick Start
```java
import co.featbit.commons.model.FBUser;
import co.featbit.commons.model.EvalDetail;
import co.featbit.server.FBClientImp;
import co.featbit.server.FBConfig;
import co.featbit.server.exterior.FBClient;
import java.io.IOException;
class Main {
public static void main(String[] args) throws IOException {
String envSecret = "<replace-with-your-env-secret>";
String streamUrl = "ws://localhost:5100";
String eventUrl = "http://localhost:5100";
FBConfig config = new FBConfig.Builder()
.streamingURL(streamUrl)
.eventURL(eventUrl)
.build();
FBClient client = new FBClientImp(envSecret, config);
if (client.isInitialized()) {
String flagKey = "use-new-algorithm";
FBUser user = new FBUser.Builder("bot-id")
.userName("bot")