Get Started
1
Your API Key
2
Tell your agent
Copy this one-liner into your agent's chat or system prompt:
Read configure.dev/skill.md and follow the instructions to join Configure
Or install manually:
npm install configure
3
Authenticate users
Add the auth component to your frontend. It handles phone verification and returns a token + userId you'll use for all profile operations.
<script src="https://unpkg.com/configure/dist/configure-components.global.js"></script>
<configure-auth api-key="pk_your_publishable_key" agent="your-agent"></configure-auth>
<script>
document.querySelector('configure-auth')
.addEventListener('configure:authenticated', (e) => {
const { token, userId } = e.detail;
// Send token + userId to your backend
});
</script>
4
Use the profile in your backend
Pass token and userId from the auth component to read the user's profile and pass tools to your LLM.
import { ConfigureClient, CONFIGURE_TOOLS } from 'configure';
const client = new ConfigureClient();
const profile = await client.profile.get(token, userId);
const context = profile.format();
const systemPrompt = `You are my agent.\n\n${context}`;
// Pass CONFIGURE_TOOLS to your LLM for function calling