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

valta-sdk

v2.2.2

Published

Financial governance infrastructure for autonomous AI agents

Downloads

332

Readme

valta-sdk

Official TypeScript SDK for Valta, financial governance infrastructure for autonomous AI agents.

Installation

npm install valta-sdk

Quick Start

import { Valta } from 'valta-sdk'

const valta = new Valta({
  apiKey: process.env.VALTA_API_KEY!
})

const agent = await valta.agents.create({
  name: 'Research Agent',
  wallet: {
    initialBalance: 100,
    dailyLimit: 50
  },
  policy: {
    requireApprovalAbove: 25,
    blockedCategories: ['gambling']
  }
})

const run = await valta.agents.run(agent.id, {
  task: 'Analyse last month spend and identify top cost drivers'
})

const { data: entries } = await valta.audit.list({ agentId: agent.id })
console.log(agent.id, run.status, entries.length)

CLI

valta login
valta agents list
valta agents create "Research Agent"
valta agents run agent_123 "Review Q4 vendor spend"
valta wallets get agent_123
valta wallets balance agent_123
valta wallets transactions agent_123
valta keys create "Production Server"
valta audit agent_123

API Reference

valta.auth

  • login(email, password) returns { token, user }
  • logout() clears the server session when supported
  • whoami() returns the authenticated user profile
  • refreshToken() returns a fresh API token

valta.agents

  • create(params) creates a governed agent
  • list(params?) lists agents with { data, pagination }
  • get(agentId) fetches one agent with wallet and policy
  • update(agentId, params) updates metadata
  • delete(agentId) deletes an agent
  • freeze(agentId) blocks runs and transactions
  • unfreeze(agentId) restores active status
  • run(agentId, params) starts a run
  • getRun(agentId, runId) fetches a run
  • listRuns(agentId, params?) lists runs

valta.wallets

  • get(agentId) returns balance, spend, limits, and address
  • getBalance(agentId) returns the USDC balance as a number
  • getDepositAddress(agentId) returns a Base USDC address and QR data URL
  • listTransactions(agentId, params?) lists wallet transactions
  • transfer(params) transfers funds between agent wallets

valta.policies

  • create(params) creates a spending policy
  • get(agentId) returns a policy or null
  • update(agentId, params) updates a policy
  • delete(agentId) removes a policy
  • list() lists policies

valta.audit

  • list(params?) lists audit entries
  • get(entryId) fetches one entry
  • export(params?) auto-paginates all matching entries
  • verify(agentId) verifies audit chain integrity

valta.keys

  • create({ name }) creates an API key and returns fullKey once
  • list() lists key metadata
  • revoke(keyId) revokes a key

Error Handling

import { Valta, ValtaError } from 'valta-sdk'

try {
  await valta.agents.get('missing')
} catch (err) {
  if (err instanceof ValtaError) {
    console.log(err.code)
    console.log(err.status)
    console.log(err.message)
  }
}

Documentation

valta.co/docs

License

MIT