Cosmology is a CLI and TypeScript/JavaScript library for building web3 applications on the Osmosis and Cosmos ecosystems. Version 3.0.2 is the latest stable release, with active development and periodic updates. It enables cryptocurrency trades, liquidity pool participation, and staking rewards directly from the command line or programmatically via the @cosmology/core library. Differentiators include tight integration with Cosmos SDK chains and tools like Telescope and osmojs. The package ships TypeScript types for better developer experience.
npm install cosmologyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the global CLI and demonstrates a trade command, then shows how to instantiate the core client to fetch balances.
Upgrade Node.js to 16 or later.
npm uninstall -g @cosmology/cli && npm install -g cosmology
Use the @cosmology/core library for programmatic access.
npm install @cosmology/core
import { CosmologyClient } from '@cosmology/core'npm install -g cosmology