# Community Recipes & Token Setup
## Step-by-step token setup, safety guidelines, and ideas for the Wildcard community.

Ready to build your own tools or browser packets? Here is the step-by-step setup to get up and running in 2 minutes:

### 1. Generating Your API Token
1. Go to your [Kagi Account Settings -> API Portal](https://kagi.com/settings?p=api).
2. Ensure you have an active Ultimate or Developer plan.
3. Generate a new API token with appropriate spending limits.

### 2. Best Practices for Developers
- **Header format**: Use `Authorization: Bot <token>` (note the `Bot` prefix).
- **Caching**: Always set `"cache": true` on FastGPT and Summarizer requests to avoid re-billing for identical queries.
- **Client Security**: Never expose your raw Kagi API key in public client-side repositories; proxy calls through a lightweight backend or local browser extension storage.

### 3. Ideas for Community Packets
- **Daily Digest Bot**: A script that summarizes the top 5 links from Wildcard every morning.
- **Quick-Answer CLI**: A terminal prompt using FastGPT for instant man-page and syntax help.
- **Indie Web Explorer**: A packet curated with search queries that highlight novel web experiments.

Share your own packets and integrations on [Wildcard](https://wildcard.cx)!

🔗 **Official Resources:**
- [Kagi API Overview](https://help.kagi.com/kagi/api/overview.html)
- [Kagi Billing & Token Limits](https://kagi.com/settings?p=billing)
