Getting Started
This guide walks you through creating an account, generating an API key, installing the SDK, and initializing the client.
Create an Account
- Go to app.smplkit.com
- Sign up with Google, Microsoft, or email/password
- You'll land in the developer console with a default environment
Create an API Key
- In the console sidebar, click API Keys
- Click + Create API Key
- Give it a name (e.g., "Development")
- Click Create
- Copy the key — it starts with
sk_api_
Your API key authenticates all SDK and API calls. Store it securely — treat it like a password.
Configure Your Environment
The SDK resolves your API key automatically. You have two options:
Config file
Create ~/.smplkit with your API key:
ini
[default]
api_key = sk_api_your_key_hereEnvironment variable
bash
export SMPLKIT_API_KEY=sk_api_your_key_hereThe environment variable takes precedence over the config file.
For advanced configuration — profiles, precedence rules, and the full reference — see the Configuration guide.
Install the SDK
bash
pip install smplkit-sdkRequires Python 3.10+.
Initialize the Client
python
from smplkit import AsyncSmplClient
async with AsyncSmplClient(environment="production", service="my-service") as client:
passA synchronous client is also available:
python
from smplkit import SmplClient
with SmplClient(environment="production", service="my-service") as client:
passThe client resolves the API key automatically from the environment variable or config file. To pass it explicitly, use the apiKey (or api_key in Python) parameter in the constructor options.
What's Next
- Configuration — Profiles, environment variables, and precedence rules
- Smpl Config — Manage application configuration across environments
- Smpl Flags — Control feature rollouts with rules-based targeting
- Smpl Logging — Control log verbosity without redeploying

