together-security-basics

Solid

Together AI security basics for inference, fine-tuning, and model deployment. Use when working with Together AI's OpenAI-compatible API. Trigger: "together security basics".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Together AI Security Basics ## Overview Together AI provides inference and fine-tuning for 100+ open-source models (Llama, Mixtral, Qwen, FLUX) via an OpenAI-compatible API. Security concerns include API key management for production inference, protecting fine-tuning datasets that may contain proprietary or sensitive data, rate limit handling to prevent cost overruns, and ensuring model outputs are not logged with sensitive prompt content. A leaked API key grants full access to inference, fine-tuning, and model management endpoints. ## API Key Management ```typescript function createTogetherClient(): { apiKey: string; baseUrl: string } { const apiKey = process.env.TOGETHER_API_KEY; if (!apiKey) { throw new Error("Missing TOGETHER_API_KEY — store in secrets manager, never in code"); } // Together keys access inference + fine-tuning — treat as production credentials console.log("Together AI client initialized (key suffix:", apiKey.slice(-4), ")"); return { apiKey, baseUrl: "https://api.together.xyz/v1" }; } ``` ## Webhook Signature Verification ```typescript import crypto from "crypto"; import { Request, Response, NextFunction } from "express"; function verifyTogetherWebhook(req: Request, res: Response, next: NextFunction): void { const signature = req.headers["x-together-signature"] as string; const secret = process.env.TOGETHER_WEBHOOK_SECRET!; const expected = crypto.createHmac("sha256", secret).update(req.body).digest("hex"); if (!signature || ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category