npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@namera-ai/cli

v0.1.4

Published

Agent-first smart account interface with session keys and scoped permissions, enabling fully local multichain automation.

Downloads

224

Readme

Namera CLI

Namera CLI gives agents controlled access to smart accounts with session keys and scoped permissions, running fully local and agent-first across chains.

Contents

Prerequisites

  • Node.js 18+ for running the CLI via npm/pnpm/bun

Installation

Install globally with your package manager:

npm i -g @namera-ai/cli
#or
pnpm i -g @namera-ai/cli
#or
bun i -g @namera-ai/cli
#or
yarn global add @namera-ai/cli

Build from source:

gh repo clone thenamespace/namera
cd namera
pnpm install
cd apps/cli
pnpm run build
pnpm run start -- --help
# or link to global install
pnpm link

Quick Start

Create a keystore, smart account, and session key (interactive prompts):

namera keystore create --alias my-owner
namera smart-account create --alias my-smart --owner-alias my-owner
namera session-key create --alias my-session-key --smart-account my-smart

Start the MCP server:

namera mcp start --smart-account my-smart --session-key my-session-key=my-password --transport http --port 8080

Why Namera CLI?

For humans: clear prompts, consistent flags, and readable output.

For agents: every command has a JSON schema, supports deterministic --params, and returns structured output that is easy to parse.

# Schema discovery
namera schema session-key.create
# Deterministic params mode
namera session-key create --params '{"alias":"my-session-key","smartAccountAlias":"my-smart","chains":["eth-mainnet"],"sessionKeyPassword":"session-password","ownerKeystorePassword":"owner-password","policyParams":[{"type":"sudo"}]}'

Command Groups

  • keystore (k): Create, import, list, inspect, decrypt, and remove keystores
  • smart-account (sa): Create, import, list, inspect, status, and remove smart accounts
  • session-key (sk): Create, list, inspect, status, and remove session keys
  • schema: Print JSON schema for command parameters
  • mcp: Start the local MCP server

Explore help:

namera --help
namera keystore --help
namera smart-account --help
namera session-key --help
namera mcp --help

Params Mode and Schema

Agents should use --params with the schema command to discover the exact input shape.

namera schema keystore.create
namera schema smart-account.create
namera schema session-key.create
namera schema mcp.start

Example params mode calls:

namera keystore create --params '{"alias":"my-owner","password":"my-password"}'
namera smart-account create --params '{"alias":"my-smart","ownerAlias":"my-owner","ownerPassword":"my-password","index":0}'
namera session-key create --params '{"alias":"my-session-key","smartAccountAlias":"my-smart","chains":["eth-mainnet"],"sessionKeyPassword":"session-password","ownerKeystorePassword":"owner-password","policyParams":[{"type":"sudo"}]}'

Output Formats

All commands support global output flags:

  • --output, -o: pretty (default), json, or ndjson
  • --quiet, -q: Suppress output entirely
namera smart-account list --output json
namera session-key list --output ndjson

Session Key Policies

Session keys are scoped by one or more policies:

  • sudo: Full permission, no restrictions
  • call: Restrict targets, functions, and value limits
  • timestamp: Limit validity by time range
  • gas: Limit total gas spend and optionally require a paymaster
  • rate-limit: Limit number of requests per interval
  • signature-caller: Restrict who can validate signatures

Example policy payload:

{ "type": "timestamp", "validAfter": 1719916800, "validUntil": 1722604800 }

MCP Server

Start MCP over stdio (default):

namera mcp start --smart-account my-smart --session-key my-session-key=my-password

Start MCP over HTTP:

namera mcp start --smart-account my-smart --session-key my-session-key=my-password --transport http --port 8080

HTTP endpoint: http://localhost:8080/mcp

Tools exposed:

  • get_wallet_address
  • get_balance
  • read_contract
  • native_transfer
  • execute_transaction

MCP Params Mode

namera mcp start --params '{"smartAccountAlias":"my-smart","transport":"http","port":8080,"sessionKeys":{"my-session-key":"my-password"}}'

Supported Chains

See the supported chain keys and IDs on Namera Documentation.

Environment Variables

You can pass chain-specific environment variables when starting MCP:

# Ethereum Mainnet
export ETH_MAINNET_RPC_URL="https://mainnet.infura.io/v3/YOUR-PROJECT-ID"
export ETH_MAINNET_BUNDLER_URL="https://rpc.zerodev.app/api/v3/<api-token>/chain/1"
export ETH_MAINNET_PAYMASTER_URL="https://rpc.zerodev.app/api/v3/<api-token>/chain/1"

# Polygon Mainnet
export POLYGON_MAINNET_RPC_URL="https://polygon-rpc.com"
export POLYGON_MAINNET_BUNDLER_URL="https://rpc.zerodev.app/api/v3/<api-token>/chain/137"
export POLYGON_MAINNET_PAYMASTER_URL="https://rpc.zerodev.app/api/v3/<api-token>/chain/137"

# ... and more

By default, MCP uses the public RPC and public Pimlico Bundler RPC: https://public.pimlico.io/v2/{chain_id}/rpc.

Examples

Create a keystore and smart account:

# Create a keystore
namera keystore create -a my-owner -p my-password
# Create a smart account
namera smart-account create -a my-smart -oa my-owner -op my-password -i 0

Create a session key (interactive policy selection):

namera session-key create -a my-session-key -sa my-smart

Check deployment status:

# Check smart account deployment status on Ethereum Mainnet
namera smart-account status --alias my-smart --chain eth-mainnet
# Check session key installation status on Ethereum Mainnet
namera session-key status --alias my-session-key --chain eth-mainnet

Documentation

Security

Please report security issues via GitHub: https://github.com/thenamespace/namera/security

License

Apache 2.0. See LICENSE.