• Stars
    star
    988
  • Rank 46,344 (Top 1.0 %)
  • Language
    HTML
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A command line interface for 1Password
=====
1pass
=====

A command line interface (and Python library) for reading passwords from
`1Password <https://agilebits.com/onepassword>`_.

Command line usage
==================

To get a password::

    1pass mail.google.com

By default this will look in ``~/Dropbox/1Password.agilekeychain``. If that's
not where you keep your keychain::

    1pass --path ~/whatever/1Password.agilekeychain mail.google.com

Or, you can set your keychain path as an enviornment variable::

    export ONEPASSWORD_KEYCHAIN=/path/to/keychain

    1pass mail.google.com

By default, the name you pass on the command line must match the name of an
item in your 1Password keychain exactly. To avoid this, fuzzy matching is
made possible with the ``--fuzzy`` flag::

    1pass --fuzzy mail.goog

If you don't want to be prompted for your password, you can use the
``--no-prompt`` flag and provide the password via standard input instead::

    emit_master_password | 1pass --no-prompt mail.google.com

Python usage
============

The interface is very simple::

    from onepassword import Keychain

    my_keychain = Keychain(path="~/Dropbox/1Password.agilekeychain")
    my_keychain.unlock("my-master-password")
    my_keychain.item("An item's name").password

An example of real-world use
============================

I wrote this so I could add the following line to my ``.muttrc`` file::

    set imap_pass = "`1pass 'Google: personal'`"

Now, whenever I start ``mutt``, I am prompted for my 1Password Master Password
and not my Gmail password.

The ``--no-prompt`` flag is very useful when configuring ``mutt`` and PGP.
``mutt`` passes the PGP passphrase via standard in, so by inserting ``1pass``
into this pipline I can use my 1Password master password when prompted for my
PGP keyphrase::

    set pgp_decrypt_command="1pass --no-prompt pgp-passphrase | gpg --passphrase-fd 0 ..."

Contributors
============

* Pip Taylor <https://github.com/pipt>
* Adam Coddington <https://github.com/latestrevision>
* Ash Berlin <https://github.com/ashb>
* Zach Allaun <https://github.com/zachallaun>
* Eric Mika <https://github.com/kitschpatrol>

License
=======

*1pass* is licensed under the MIT license. See the license file for details.

While it is designed to read ``.agilekeychain`` bundles created by 1Password,
*1pass* isn't officially sanctioned or supported by
`AgileBits <https://agilebits.com/>`_. I do hope they like it though.

More Repositories

1

lastify

Adds Last.fm Love, Ban and tagging abilities to Spotify
Objective-C
45
star
2

git-browse

Like git blame, but interactive.
Python
44
star
3

ner-tools

Tools for training Stanford NLP's NER models
Makefile
31
star
4

dotfiles

My dotfiles
Shell
25
star
5

talks

Notes and slides for talks and presentations.
HTML
16
star
6

spotify-scrobbler

A SIMBL plugin for the Spotify client to scrobble tracks to last.fm
Objective-C
15
star
7

assert-microformats

A gem to help you automatically test for correct microformat markup in Rails apps.
Ruby
11
star
8

vimraces

Who's the fastest?
Vim Script
10
star
9

XFN-Profile-Detection

A greasemonkey script that finds other profile pages starting from the page you're on
JavaScript
10
star
10

javascript-features

Structured, unobtrusive JavaScript in Rails apps.
Ruby
8
star
11

readline-example

Readline tab completion example for a blog post
C
7
star
12

enhanced-hcalendar-downloads

A script to detect and ehnance links to Technorati's hCalendar parsing service.
JavaScript
6
star
13

greeter

A simple Ruby command line app, built as a demo for dotRB 2013
Ruby
5
star
14

git-fixup

Custom Git command to automatically create fixup commits
Python
5
star
15

build-monitor

Sinatra app for big screen display of CruiseControl build statuses.
JavaScript
4
star
16

cocoa-fire-eagle-framework

A Cocoa Framework allowing OS X apps to easily talk to Fire Eagle
3
star
17

bcl6-safari-plugin-demo

A demo Safari plugin written for a Barcamp London 6 talk on OS X hacking
Objective-C
3
star
18

swte-demo

A demo Django app, for my "sleeping with the enemy" talk.
Python
2
star
19

javascript-weekly-feed

An atom feed for the JavaScript Weekly email newsletter.
Ruby
2
star
20

iplayer-twitter-sync

Chrome plugin to synchronise iPlayer with Twitter.
JavaScript
2
star
21

timelapse

Take regular screenshots of your web pages
Ruby
1
star
22

css_parser

A Treetop-based parser for CSS
Ruby
1
star
23

git-for-everyone-1

1
star
24

git-for-everyone-15

1
star
25

curriculum-github

Ruby
1
star
26

Versus

Recommends Foursquare venues based on similar users.
Python
1
star
27

readline-extensions

Experiments with improved Readline support in Ruby
C
1
star