To add / delete password to the non default keychain the commands security add-*-password and security delete-*-password take as optional argument the keychain or uses the default keychain.
There's no way to specify a non default keychain in the current API: https://github.com/mattt/security/blob/master/lib/security/password.rb#L84
Workaround: modify the default keychain temporarily from the CL