MCPcopy Index your code
hub / github.com/VictorNine/bitwarden-go

github.com/VictorNine/bitwarden-go @v0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.1 ↗ · + Follow
109 symbols 229 edges 10 files 13 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

(Note: This is still a work in progress. This project is not associated with the Bitwarden project nor 8bit Solutions LLC.)

bitwarden-go

Build Status Gitter chat

A server compatible with the Bitwarden apps and plugins. The server has a small footprint and could be run locally on your computer, a Raspberry Pi or a small VPS. The data is stored in a local SQLite database.

** If you're using an old database you need to add kdf and kdfIterations to your accounts table **

For more information on the protocol you can read the documentation provided by jcs

Usage

Fetching the code

Make sure you have the go package installed. Note: package name may vary based on distribution

You can then run go get github.com/VictorNine/bitwarden-go to fetch the latest code.

Build/Install

Run in your favorite terminal:

cd $GOPATH/src/github.com/VictorNine/bitwarden-go/cmd/bitwarden-go

followed by

go build

or

go install

The former will create a executable named bitwarden-go in the current directory, and go install will build and install the executable bitwarden-go as a system-wide application (located in $GOPATH/bin). Note: From here on, this guide assumes you ran go install

Initalizing the Database

Note: This step only has to be performed once

Run the following to initalize the database:

bitwarden-go -init

This will create a database called db in the directory of the application. Use -location to set a different directory for the database.

Running

To run bitwarden-go, run the following in the terminal:

bitwarden-go

Usage with Flags

To see all current flags and options with the application, run

bitwarden-go -h

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

JwtMiddleware
called by 14
internal/auth/auth.go
Close
called by 12
internal/database/sqlite/database.go
GetAccount
called by 12
internal/api/api.go
GetEmail
called by 4
internal/auth/auth.go
checkPassword
called by 4
internal/auth/auth.go
reHashPassword
called by 3
internal/auth/auth.go
toCipher
called by 3
internal/api/api.go
unmarshalCipher
called by 3
internal/api/api.go

Shape

Method 66
Struct 24
Function 16
Interface 2
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/api/api.go26 symbols
internal/database/sqlite/database.go18 symbols
internal/auth/auth.go18 symbols
internal/database/mock/database_mock.go16 symbols
internal/common/types.go16 symbols
internal/auth/2fa.go7 symbols
internal/common/proxy.go3 symbols
internal/api/api_test.go2 symbols
cmd/bitwarden-go/main.go2 symbols
internal/auth/auth_test.go1 symbols

For agents

$ claude mcp add bitwarden-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact