Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@olane/o-cli

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@olane/o-cli

Command-line interface for the [Olane Network](https://olane.dev) — interact with the Copass knowledge graph, ingest code and documentation, and query your project's ontology.

Source
npmnpm
Version
2.0.14
Version published
Weekly downloads
11
-92.36%
Maintainers
1
Weekly downloads
 
Created
Source

Olane CLI

Command-line interface for the Olane Network — interact with the Copass knowledge graph, ingest code and documentation, and query your project's ontology.

Installation

npm install -g @olane/o-cli

Homebrew

brew tap olane-labs/tap
brew install olane

From source

git clone https://github.com/olane-labs/o-cli.git
cd o-cli
pnpm install
pnpm build

Requires Node.js >= 20.0.0.

Quick start

# Authenticate
olane login

# Initialize your project
olane setup

# Index your codebase
olane index --mode full

# Query the knowledge graph
olane cosync question "How does authentication work in this project?"

# Search for entities
olane search "UserService"

Commands

Authentication

CommandDescription
olane loginSign in with email (OTP verification)
olane logoutClear stored auth tokens

Project

CommandDescription
olane setupInteractive project initialization
olane statusCheck indexing status and project health
olane index --mode <full|incremental>Index project for ontology enrichment

Cosync (Knowledge Graph)

CommandDescription
olane cosync question <question>Natural language Q&A against your ontology
olane cosync analyze <query>Deep entity analysis with confidence scoring
olane cosync score <entity>Get cosync score for a specific entity
olane cosync task <plan>Get task readiness scores for planning
olane cosync learn <entity-ids...>Get learning requests to fill knowledge gaps

Search & Ingestion

CommandDescription
olane search <query>Search ontology by name or description
olane ingest code [file]Ingest source code for entity extraction
olane ingest text [file]Ingest text or documentation

API Keys

CommandDescription
olane api-key createGenerate a long-lived API key
olane api-key listList active API keys
olane api-key revoke <key-id>Revoke an API key

Configuration

CommandDescription
olane config set <key> <value>Set a config value
olane config get <key>Get a config value
olane config listList all config values

MCP Server

olane copass --mcp

Starts a Model Context Protocol server over stdio, exposing all CLI capabilities as tools for AI agents.

MCP integration

Add Olane as an MCP server in your .mcp.json:

{
  "mcpServers": {
    "olane": {
      "type": "stdio",
      "command": "olane",
      "args": ["copass", "--mcp"]
    }
  }
}

Available MCP tools

ToolDescription
check_project_statusCheck project indexing status
cosync_questionNatural language ontology queries
cosync_analyzeEntity analysis with cosync scoring
search_entitiesSearch the ontology
ingest_codeIngest source code
ingest_textIngest text/documentation
get_task_cosyncTask readiness scoring
get_scoreEntity cosync scoring
get_learning_requestsGenerate learning questions for knowledge gaps

Cosync scoring

Cosync scores measure confidence in the knowledge graph's understanding of entities:

TierMeaning
safeHigh confidence, well-understood entity
reviewModerate confidence, may benefit from verification
cautionLow confidence, likely needs enrichment
criticalVery low confidence, significant gaps
cold_startNew entity with minimal data

Use olane cosync learn to get targeted questions that improve low-scoring entities.

Supported languages

Code ingestion supports: TypeScript, JavaScript, Python, Rust, Go, Java, Ruby, PHP, C, C++, C#, Swift, Kotlin, Scala, Bash, SQL, YAML, JSON, Markdown, HTML, CSS, SCSS, Vue, and Svelte.

Configuration

Global config (~/.olane/config.json)

Stores authentication tokens, API endpoints, and encryption keys. Created automatically on olane login.

Project config (.olane/config.json)

Stores project-specific settings including cosync thresholds, indexing schedules, and hook configuration. Created by olane setup.

Environment variables

VariableDescription
OLANE_API_URLAPI endpoint (default: https://ai.copass.id)
OLANE_ENCRYPTION_KEYMaster encryption key
OLANE_PROJECT_IDDefault project ID

Security

All data in transit is encrypted using AES-256-GCM. Each project can have its own master encryption key, stored locally or provided via environment variable. Session tokens wrap a derived encryption key with your access token for secure API communication.

License

MIT

Keywords

olane os

FAQs

Package last updated on 17 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts