Skip to content

feigeCode/onetcli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OnetCli

OnetCli

Native all-in-one workspace for databases, SSH, SFTP, terminals, monitoring, and AI.

Built with GPUI · Rust native desktop · GPU-accelerated rendering

Downloads CI License QQ Group 860670605 Join WeChat Group

MySQL PostgreSQL SQLite DuckDB ClickHouse SQL Server Oracle Redis MongoDB SSH SFTP

中文 · Install · Latest Release · Features · Screenshots · Contributing

OnetCli overview

Why OnetCli?

Native desktop, not a browser shell

OnetCli is built with Rust and GPUI for a native desktop experience with GPU-accelerated rendering.

One workspace for daily ops

Database management, SSH terminals, SFTP file transfer, serial connections, and local terminals live in one app.

AI next to your data

Use the built-in AI assistant for natural language to SQL, query explanation, BI-style analysis, and chart generation.

Remote work without context switching

Open a remote terminal, browse files through SFTP, drag files into the sidebar, and edit remote files with syntax highlighting.

Features

Database Workspace

Connect to MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, Oracle, and ClickHouse from a single interface. Browse schemas, tables, columns, indexes, foreign keys, procedures, functions, triggers, and sequences where supported.

SQL Editor & Schema Tools

Work with a SQL editor backed by syntax tooling, schema-aware browsing, table structure editing, query execution, explain support, and ER diagrams.

Redis & MongoDB

Use the dedicated Redis viewer for key browsing, value inspection, and cluster connections. Explore MongoDB collections, inspect documents, and run queries from the same workspace.

SSH, SFTP, Serial & Terminal

Open integrated SSH sessions, manage SFTP files, connect to serial devices, and keep local terminals in multi-tab sessions. The terminal includes an SFTP sidebar with drag-and-drop upload support, path favorites, and quick jumps to frequently used directories.

Remote File Editing

Edit remote files directly inside OnetCli with syntax highlighting and autocomplete. No need to open another editor or switch back and forth between terminal and file tools.

Monitoring & Charts

Use built-in server monitoring and native rendered charts to inspect remote machine status and data analysis output.

AI Assistant

Chat with AI inside the app. OnetCli supports natural language to SQL, query explanation, BI-style data analysis, chart generation, and streaming LLM responses. It can also generate terminal commands that you can quickly paste into a terminal session and run.

Sync, Security & i18n

Sync connections and settings across devices with encrypted key storage based on AES-GCM and Ed25519. OnetCli supports light and dark themes, English, Simplified Chinese, and Traditional Chinese.

Screenshots

Database SSH
Database SSH
SFTP Redis
SFTP Redis
MongoDB AI Chat
MongoDB AI Chat
Monitoring SFTP Sidebar
Monitoring SFTP Sidebar
Remote File Editor ER Diagram
Remote File Editor ER Diagram

Install

Download the latest build from the Releases page.

Release artifacts are currently published by platform:

Platform Architecture Artifact
macOS Apple Silicon, Intel .dmg, .tar.gz
Linux x86_64 .tar.gz
Windows x86_64 .zip

Checksums are published as sha256sums.txt in each release.

macOS Gatekeeper

If macOS blocks the app after installing the DMG with "Apple cannot check it for malicious software", run:

sudo xattr -rd com.apple.quarantine /Applications/OnetCli.app

Oracle Support

Oracle connections require Oracle Instant Client (Basic package). Download the version matching your platform and ensure the libraries are in your library search path.

Getting Started

  1. Open OnetCli and create your first database connection.
  2. Add an SSH host and open a remote terminal.
  3. Open SFTP file management to browse remote directories or transfer files.
  4. Try Redis key browsing or MongoDB document browsing.
  5. Use the AI assistant in SQL or data analysis workflows.

Build From Source

Prerequisites

  • Rust 2024 edition
  • Platform-specific system dependencies

System Dependencies

macOS / Linux:

./script/bootstrap

Windows (PowerShell):

.\script\install-window.ps1

Run

cargo run -p main

Development Checks

# Build
cargo build

# Test
cargo test --all

# Lint
cargo clippy --workspace --all-targets

# Format check
cargo fmt --check

See CONTRIBUTING.md for the full development guide.

Tech Stack

Category Technologies
UI Framework GPUI
Language Rust
Databases tokio-postgres, mysql_async, rusqlite, tiberius, oracle, clickhouse
Redis / MongoDB redis, mongodb
SSH / SFTP russh, russh-sftp
Terminal alacritty_terminal
Text Editing ropey, tree-sitter, sqlparser
AI llm-connector
Encryption aes-gcm, sha2, ed25519
i18n rust-i18n

FAQ

Which databases are supported?

OnetCli has built-in database support for MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, Oracle, and ClickHouse. It also includes dedicated Redis and MongoDB views.

Does Oracle need extra setup?

Yes. Oracle connections require Oracle Instant Client to be installed and available through your system library search path.

Where can I download OnetCli?

Use the GitHub Releases page. The current release workflow publishes macOS, Linux, and Windows artifacts with checksums.

Is OnetCli free?

All features are available without sponsorship. The source is licensed under Apache License 2.0, and distribution or product use is also subject to the OnetCli Supplementary License.

How do I report bugs or request features?

Open an issue on GitHub Issues. For code changes, please read CONTRIBUTING.md first.

Support

OnetCli is maintained by one person over the long term. If it saves you time, you can support the project through donations, stars, bug reports, or focused pull requests.

Donation

Donation is optional and does not unlock or restrict any features. See DONATE.md for WeChat Pay, Alipay, and PayPal options.

Community Contacts

Official community channels:

Credits

ER diagram rendering is based on ferrum-flow.

License

Licensed under Apache License 2.0.

The distribution and use of the OnetCli application are additionally subject to the OnetCli Supplementary License, which adds the following restrictions on top of Apache 2.0:

  • No redistribution, resale, or repackaging as a standalone product
  • No creating competing products or services based on this software
  • No hosting on unauthorized distribution platforms

For licensing inquiries, contact xiaofei.hf@gmail.com.

Star History

Star History Chart

About

One Net Client — A cross-platform desktop client for databases, SSH/SFTP, terminals & AI, all in one place.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Rust 99.5%
  • Tree-sitter Query 0.3%
  • Shell 0.2%
  • HTML 0.0%
  • Svelte 0.0%
  • Kotlin 0.0%