Skip to main content

Overview

Features are the capabilities or resources in your application that you want to gate, meter, or monetize. Autumn provides a powerful feature system that combines feature flags, usage tracking, and access control.

Feature Structure

Feature Types

Autumn supports three types of features:

1. Boolean Features

Simple on/off feature flags:
Check access:

2. Metered Features

Countable resources with usage limits:
Single Usage - Usage counts toward a limit:
Example flow:
Continuous Usage - For resources that are actively consumed:
Continuous usage is typically for:
  • Seats (team members currently in the account)
  • Storage (currently used disk space)
  • Active connections
  • Running instances
Continuous usage features can have prorated pricing - charges adjust based on how long the resource is used during a billing period.

3. Credit Systems

A shared credit pool that multiple features can draw from:
Example: AI Credits system
Using the credit system:
Credit systems are perfect for AI/ML platforms where different operations have different costs, but you want to offer a single credit balance to customers.

Entitlements

Entitlements connect features to products and define the allowance:

Entitlement Examples

Boolean entitlement - Feature access flag:
Metered entitlement - Usage allowance:
Unlimited entitlement:

Checking Feature Access

The /check endpoint tells you if a customer can use a feature:
When allowed: false, the response includes a reason:

Tracking Usage

Record usage events with the /track endpoint:
Always call /check before performing the action and /track after successfully completing it. This ensures you don’t charge for operations that fail.

Usage Reset Intervals

Metered features reset based on their entitlement’s interval: Custom intervals using interval_count:

Rollover and Carry Forward

Allow customers to keep unused allowance:
Example:
  • Month 1: Allowance = 10,000, Used = 6,000, Remaining = 4,000
  • Month 2: Allowance = 10,000 + 4,000 (capped at 5,000) = 15,000

Feature Display

The display field controls how usage is shown to customers:

Feature Validation

Feature IDs must match this pattern:
Feature IDs can only contain alphanumeric characters, hyphens, and underscores.

Event Names

Alias feature IDs with alternative event names:
All of these work:

Next Steps