Developer Portal

Welcome to the Fivo Developer Portal. Here you'll find setup manuals, API guides, and integration schemas for routing prompts, learning programming taste, and masking sensitive client data.

VPC-Native Architecture

Fivo and its modules run natively in transit with **zero-payload persistence**. Your raw prompts, trade secrets, keys, and API payloads are processed completely in-flight and are never stored or logged by Fivo.

1-Line Quickstart

Integrating Fivo into your active code base is as simple as updating your client's `base_url` or `baseURL` pointer. Point your existing API calls at Fivo and configure your custom API key.

# Install official OpenAI client: pip install openai
import openai

client = openai.OpenAI(
    api_key="ps_live_your_key_here",  # Fivo Workspace key prefix
    base_url="https://api.fivo.live/v1"  # Point directly to Fivo Gateway!
)

response = client.chat.completions.create(
    model="deepseek-v4-pro",  # Optimized next-gen model class
    messages=[{"role": "user", "content": "Optimize this binary search algorithm..."}]
)

print(response.choices[0].message.content)
// Install official OpenAI client: npm install openai
const { OpenAI } = require('openai');

const openai = new OpenAI({
  apiKey: 'ps_live_your_key_here',
  baseURL: 'https://api.fivo.live/v1' // Point directly to Fivo Gateway!
});

async function run() {
  const response = await openai.chat.completions.create({
    model: 'deepseek-v4-pro',
    messages: [{ role: 'user', content: 'Optimize this binary search algorithm...' }],
  });
  console.log(response.choices[0].message.content);
}

run();
curl -X POST https://api.fivo.live/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "x-fivo-api-key: ps_live_your_key_here" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [{"role": "user", "content": "Optimize this binary search algorithm..."}]
  }'
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/sashabaranov/go-openai"
)

func main() {
	config := openai.DefaultConfig("ps_live_your_key_here")
	config.BaseURL = "https://api.fivo.live/v1"

	client := openai.NewClientWithConfig(config)
	resp, err := client.CreateChatCompletion(
		context.Background(),
		openai.ChatCompletionRequest{
			Model: "deepseek-v4-pro",
			Messages: []openai.ChatCompletionMessage{
				{
					Role:    openai.ChatMessageRoleUser,
					Content: "Optimize this binary search algorithm...",
				},
			},
		},
	)

	if err != nil {
		log.Fatalf("ChatCompletion error: %v\n", err)
	}

	fmt.Println(resp.Choices[0].Message.Content)
}
use reqwest::Client;
use serde_json::json;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let response = client
        .post("https://api.fivo.live/v1/chat/completions")
        .header("Content-Type", "application/json")
        .header("x-fivo-api-key", "ps_live_your_key_here")
        .json(&json!({
            "model": "deepseek-v4-pro",
            "messages": [{"role": "user", "content": "Optimize this binary search algorithm..."}]
        }))
        .send()
        .await?
        .json::<serde_json::Value>()
        .await?;

    let content = &response["choices"][0]["message"]["content"];
    println!("Response: {}", content);
    Ok(())
}

Fivo Gateway: Intelligent Routing

Fivo Gateway operates as an in-transit secure router sitting directly between your applications and 8+ major next-generation model architectures.

Every incoming prompt is instantly evaluated for semantic caching availability and provider latency baseline. When Fivo detects a repetitive developer workload–”such as structural parsing, automated code analysis, or database query generation–”it serves the response directly from our local memory caching tier in less than 50ms.

This bypasses the model provider entirely, retaining 99%+ quality while reducing expenditures up to 25x.

Inherited Security Compliance

Because Fivo Gateway operates purely in-transit, your prompt data is never stored or persisted. It inherits your secure local servers or private virtual cloud bounds automatically, simplifying audits and allowing security teams to implement optimized routing from day one.

Next-Gen Model Support

Fivo routes incoming requests dynamically across high-performance next-generation models from major providers, ensuring the lowest latency and optimal cost.

Model Class Provider Core Avg savings Ideal For
Claude Opus 4.8 Anthropic Engine 4.5x savings Complex system architecture and deep reasoning
GPT-5.5 (Ultra) OpenAI Suite 6.0x savings Highly structured output and enterprise analysis
DeepSeek V4 Pro DeepSeek Cluster 25.0x savings High-speed, massive repeat programming and scripts
Gemini 3.5 Flash Google AI Labs 12.0x savings Low-latency, long-context audio and video analysis
Llama 4.3 (OSS) Meta Open Source 15.0x savings Fast offline generation and utility parsing tasks

Fivo Connect: Self-Hosted Service

Fivo Connect operates completely inside your secure server or private cloud boundary as a zero-dependency self-hosted service to run a high-throughput proxy local port.

Connect automatically scans your prompt bodies for credit card numbers, passwords, API tokens, patient names (HIPAA PHI), and financial identifiers, replacing them in-flight with **structured placeholders** before payloads reach public LLMs.

Boot and Execution Command

Launch the service on your host environment:

# Grant execution permissions and run
chmod +x fivo-connect-linux
./fivo-connect-linux --config fivo-connect.config.json

✅ FIVO Connect listening on http://localhost:9090
# Launch the service securely via PowerShell
.\fivo-connect-win.exe --config fivo-connect.config.json

✅ FIVO Connect listening on http://localhost:9090

Masking REST API

Interact with the Fivo Connect service programmatically using high-performance HTTP REST endpoints. Obfuscate source code or text via `/api/enhance`, and revert generated LLM responses via `/api/reverse`.

import requests

# Step 1: Mask the sensitive prompt body
payload = {"prompt": "Our secret token is 'API_KEY_123' and database is db_prod"}
mask_res = requests.post("http://localhost:9090/api/enhance", json=payload).json()
print(mask_res["enhanced"]) 
# Output: "Our secret token is '[MASKED_CRED_01]' and database is [MASKED_DB_01]"

# Step 2: Send safe masked prompt to the LLM (represented here)
llm_reply = "We validated [MASKED_CRED_01] connection on database [MASKED_DB_01] successfully."

# Step 3: Revert placeholder values to retrieve real values locally
revert_res = requests.post("http://localhost:9090/api/reverse", json={"text": llm_reply}).json()
print(revert_res["reversed"])
# Output: "We validated 'API_KEY_123' connection on database db_prod successfully."
// Step 1: Obfuscate
const maskRes = await fetch('http://localhost:9090/api/enhance', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ prompt: "Secret key: 'ACC_987654321' belongs to John Doe" })
}).then(r => r.json());

console.log(maskRes.enhanced);
// Output: "Secret key: '[MASKED_KEY_01]' belongs to [MASKED_USER_01]"

// ... Send obfuscated output to LLM and receive answer ...
const llmResponse = "Authorized key [MASKED_KEY_01] for profile [MASKED_USER_01] in-flight.";

// Step 2: Restore real text
const realRes = await fetch('http://localhost:9090/api/reverse', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ text: llmResponse })
}).then(r => r.json());

console.log(realRes.reversed);
// Output: "Authorized key 'ACC_987654321' for profile John Doe in-flight."

Compliance Boundaries & Data Transit

Traditional data masking tools rely on external third-party cloud engines, forcing sensitive source code or customer data to leave your network. Fivo Connect establishes a clean, local protection boundary.

Because Fivo Connect executes **entirely within your self-hosted infrastructure** (VPC, local workstation, or private node), all raw prompt content, passwords, and patient names are intercepted and masked before any external call is initiated. This zero-retention transit layout ensures that raw payloads never reach public AI systems, preserving your existing compliance parameters.

Fivo Mind: Reasoning Architecture

Fivo Mind is the next-generation ground-up reasoning model built directly into the Fivo local-first ecosystem. Designed for deep multi-step verification and self-correction, Fivo Mind provides extreme accuracy on complex programming and mathematical tasks while adhering strictly to zero-leak security principles.

Internal Evaluation Only

Fivo Mind is currently in private development. All metrics and capabilities presented are based on **Internal Evaluations** conducted by the Fivo research team and have not been independently audited. **Public access is not available yet.**

Key Architecture Features

  • Reasoning-First Verification: Evaluates logic paths, plans structures, and runs self-checks before returning code or mathematical tokens.
  • Zero-Leak VPC Bounds: Inherits Fivo Connect's masking architecture, meaning prompts and intellectual property are parsed locally inside your infrastructure.
  • Deep Fivo Tool Integration: Plugs directly into Fivo Gateway for prompt caching.

Join the Waitlist

We are currently selecting team pilots for private alpha integrations. To join the waitlist and gain early access to custom deployments, contact us at hello@fivo.live.

Fivo Mind: Internal Evaluation Benchmarks

During our internal testing cycles, Fivo Mind models demonstrated exceptional accuracy indexes compared to public models, particularly under maximum thinking configurations.

Benchmark Metric Fivo Mind Fivo Mind Pro Fable 5 Opus 4.8 GPT-5.5 GLM 5.2
SWE-bench Verified 89.0% 93.0% 95.0% 88.6% 58.6%
Terminal-Bench 2.1 84.0% 88.0% 88.0% 85.0% 84.0% 81.0%
FrontierSWE 73.0% 78.0% 75.1% 72.6% 74.4%
LiveCodeBench 86.0% 91.0% 88.8%
GPQA Diamond 90.0% 94.0% 94.5% 91.3% 92.8%
MATH500 98.5% 99.2%
HumanEval 88.0% 94.0%
OSWorld / Verified 80.0% 86.0% 85.0% 83.4% 78.7%
HLE (with tools) 59.0% 66.0% 64.5% 57.9% 52.2% 54.7%

Speed, Latency & Cost Index Comparison

Reasoning verification increases latency but delivers significantly higher solution accuracy. Fivo Mind Pro targets mid-tier reasoning pricing, offering high-performance coding outputs at a lower cost than competitor frontier models.

Model Class Avg Latency (ms) Avg Speed (tok/s) Cost Index (GLM=100) Performance Index
Fivo Mind 8,200ms 32 tok/s 115 68
Fivo Mind Pro 12,800ms 20 tok/s 210 96
GPT-5.5 3,900ms 78 tok/s 260 72
Opus 4.8 6,100ms 55 tok/s 300 85
Fable 5 7,900ms 34 tok/s 500 88

Fivo CLI Overview

Fivo CLI is an AI coding host with a 10M+ context window, long-running memory, and predictable cost per turn. It remembers your code, conversations, and decisions across sessions without manual context management.

Key Capabilities

  • Extended context window for large codebases and long conversations
  • Memory store that persists across coding sessions
  • Relevant recall brings back important prior work automatically
  • Lean output mode keeps terminal output focused and readable
  • Safety guard protects against risky actions
Get Started

Install with npm install -g @fivo/cli and start your session. See the Fivo CLI page for details.

Fivo Fuse Overview

Fivo Fuse automatically tunes model runs for better speed, lower memory usage, and simpler setup. It generates optimized configurations so you can run larger workloads on limited hardware.

Key Benefits

  • Hardware-aware setup that matches your machine capabilities
  • Lower memory pressure for long-context or large-model workloads
  • Faster responses with automatic optimization settings
  • Reusable configurations across your team
Open Source

Fuse is 100% open source. Clone, install, tune in seconds.

API Reference Definition

Fivo's endpoints follow strict REST API designs. Standard structures for payload exchanges are outlined below.

1. Gateway Route: `/v1/chat/completions`

Acts as a drop-in proxy replacement for OpenAI Chat Completions requests (authenticate using header x-fivo-api-key with your workspace ps_live_ key).

Request Payload Schema
{
  "model": "deepseek-v4-pro | claude-opus-4.8 | gpt-5.5-ultra | gemini-3.5-flash",
  "messages": [
    {
      "role": "system",
      "content": "System prompt..."
    },
    {
      "role": "user",
      "content": "User inquiry prompt..."
    }
  ],
  "temperature": 0.7,
  "max_tokens": 1024
}

2. Fivo Connect: `/api/enhance`

Send text containing raw PHI/PII/sensitive code, receive masked placeholder text.

Request / Response Schema
// POST http://localhost:9090/api/enhance
{
  "prompt": "Sensitive data to mask..."
}

// Returns HTTP 200 OK
{
  "status": "success",
  "enhanced": "Masked data [MASKED_VAR_01] here...",
  "tokens_replaced": 1
}

3. Fivo Connect: `/api/reverse`

Send text containing placeholders, receive the original sensitive values restored locally.

Request / Response Schema
// POST http://localhost:9090/api/reverse
{
  "text": "Response with placeholders [MASKED_VAR_01] to restore..."
}

// Returns HTTP 200 OK
{
  "status": "success",
  "reversed": "Original sensitive response restored successfully...",
  "tokens_restored": 1
}

Troubleshooting A-Z

Encountering issues during deployment, client handshakes, or response parsing? Review our comprehensive troubleshooting matrix for Fivo Gateway and Connect modules.

1. Fivo Gateway (Intelligent Routing Proxy)

Observed Issue Possible Root Cause Recommended Solution
401 Unauthorized or Invalid Key Missing or incorrect Fivo API token, or your downstream provider key is expired/invalid. Verify that your authorization header is formatted as Bearer fivo_live_.... Check that your downstream credentials (OpenAI/Anthropic) are active and provisioned inside your dashboard.
504 Gateway Timeout during heavy loads Primary fallback models are congested or experiencing localized network outages. Fivo automatically races connections to identify active paths. If timeouts persist, check your local infrastructure firewalls to confirm that outbound traffic to api.fivo.live is allowed.
Intelligent Cache Misses on identical lookups The query contains highly dynamic context parameters (like moving timestamps, UUIDs, or shifting tokens). Exclude volatile identifiers (such as date values or session keys) from your core prompt block, passing them instead as custom tags in structured API metadata to optimize cache hitting.

2. Fivo Connect (Self-Hosted Data Masking)

Observed Issue Possible Root Cause Recommended Solution
Permission Denied (Execution Error) Insufficient execute permissions set on the local system service files. Open a terminal on your hosting server and run chmod +x ./fivo-connect-linux (or -macos) to grant execution flags before launching.
Tokens not restored in response body Casing was altered, or downstream markdown formatting modified the structured brackets (e.g. [MASKED_VAR_01]). Ensure that LLM response strings are passed raw into the /api/reverse payload. Connect requires exact, unaltered bracket strings to reverse values successfully.
Service Crash under concurrent traffic spikes Your hosting OS ran out of open file descriptor allocation pools. Increase the system open files ceiling by running ulimit -n 65536 in your active terminal session before starting the Fivo Connect service daemon.

Frequently Asked Questions

Quick answers to the most common questions about Fivo.

How do I install Fivo Gateway?

Change your OpenAI base URL to https://api.fivo.live/v1 and add your API key. Most customers integrate in under 10 minutes. Full SDK examples at /docs.html.

How do I install Fivo Connect?

Download the Fivo Connect binary for your platform, configure your LLM provider base URL, and run fivo-connect start. Self-hosted, no dependencies.

Do you have SDK examples?

Yes. JavaScript, TypeScript, Python, Go, and Rust examples at /docs.html. Plus LangChain, LlamaIndex, and Vercel AI SDK integrations.

Is there a self-hosted option?

Yes. Fivo Gateway and Fivo Connect have self-hostable components. The managed cloud is a paid tier with zero ops.

How do I get support?

Free tier: GitHub Issues and Discord. Pro and Team tiers: email support with 24-hour response. Enterprise: dedicated Slack channel and named support engineer.